Skip to content

Commit

Permalink
fix(Ansible): Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
fhlavac committed Sep 26, 2023
1 parent 04319f6 commit 065a1aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
8 changes: 1 addition & 7 deletions packages/module/src/Ansible/Ansible.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,10 @@ const Ansible: React.FunctionComponent<AnsibleProps> = ({ unsupported, className
</React.Fragment>
);

const ariaLabels = unsupported ? {
disabled: 'disabled',
['aria-label']: 'Does not have Ansible support',
} : { ['aria-label']: 'Has Ansible support' };

return (
<i className={ansibleLogoClass} {...ariaLabels} {...props}>
<i className={ansibleLogoClass} {...props}>
<svg
version="1.1"
id="Layer_1"
x="0px"
y="0px"
viewBox="0 0 2032 2027.2"
Expand Down
18 changes: 4 additions & 14 deletions packages/module/src/Ansible/__snapshots__/Ansible.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
exports[`Ansible component should render supported - boolean 1`] = `
<div>
<i
aria-label="Has Ansible support"
class="Ansible is-supported"
class="ansible-0-2-1 supported-0-2-2"
>
<svg
id="Layer_1"
style="enable-background: new 0 0 2032 2027.2;"
version="1.1"
viewBox="0 0 2032 2027.2"
Expand All @@ -29,11 +27,9 @@ exports[`Ansible component should render supported - boolean 1`] = `
exports[`Ansible component should render supported - number 1`] = `
<div>
<i
aria-label="Has Ansible support"
class="Ansible is-supported"
class="ansible-0-2-1 supported-0-2-2"
>
<svg
id="Layer_1"
style="enable-background: new 0 0 2032 2027.2;"
version="1.1"
viewBox="0 0 2032 2027.2"
Expand All @@ -55,12 +51,9 @@ exports[`Ansible component should render supported - number 1`] = `
exports[`Ansible component should render unsupported - boolean 1`] = `
<div>
<i
aria-label="Does not have Ansible support"
class="Ansible is-unsupported"
disabled=""
class="ansible-0-2-1 unsupported-0-2-3"
>
<svg
id="Layer_1"
style="enable-background: new 0 0 2032 2027.2;"
version="1.1"
viewBox="0 0 2032 2027.2"
Expand Down Expand Up @@ -106,12 +99,9 @@ exports[`Ansible component should render unsupported - boolean 1`] = `
exports[`Ansible component should render unsupported - number 1`] = `
<div>
<i
aria-label="Does not have Ansible support"
class="Ansible is-unsupported"
disabled=""
class="ansible-0-2-1 unsupported-0-2-3"
>
<svg
id="Layer_1"
style="enable-background: new 0 0 2032 2027.2;"
version="1.1"
viewBox="0 0 2032 2027.2"
Expand Down

0 comments on commit 065a1aa

Please sign in to comment.