-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update deprecated a11y attributes in button component (#666)
* fix(button): update test to use a11y-pressed * fix(toggle-button): update to use a11y-pressed The pressed attribute is deprecated in favor of a11y-pressed. This updates the toggle button group to use the new attribute and stop console logging deprecation warnings when it is used. * fix(button): update label attribute to a11y-label Recently the label attribute was deprecated in favor of a11y-label. This updtes all the button uses internal to the library to use the new attribute. This prevents confusing warnings in the console for the end users. * chore: add changeset
- Loading branch information
1 parent
0bea422
commit 79229b2
Showing
37 changed files
with
96 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@ithaka/pharos': patch | ||
'@ithaka/pharos-site': patch | ||
--- | ||
|
||
Update internal button usage to use a11y-pressed and a11y-label attributes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ export const Base = { | |
name="search-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11yLabel="search" | ||
></PharosButton> | ||
</PharosInputGroup> | ||
</div> | ||
|
@@ -60,7 +60,7 @@ export const Prominent = { | |
name="search-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11yLabel="search" | ||
></PharosButton> | ||
</PharosInputGroup> | ||
</div> | ||
|
@@ -82,7 +82,7 @@ export const Validity = { | |
name="search-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11yLabel="search" | ||
></PharosButton> | ||
</PharosInputGroup> | ||
<PharosInputGroup validated value="[email protected]" name="my-input-group"> | ||
|
@@ -91,7 +91,7 @@ export const Validity = { | |
name="search-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11yLabel="search" | ||
></PharosButton> | ||
</PharosInputGroup> | ||
</div> | ||
|
@@ -117,13 +117,13 @@ export const Composition = { | |
name="close-button" | ||
icon="close" | ||
variant="subtle" | ||
label="close" | ||
a11yLabel="close" | ||
></PharosButton> | ||
<PharosButton | ||
name="search-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11yLabel="search" | ||
></PharosButton> | ||
</PharosInputGroup> | ||
<PharosInputGroup name="my-input-group-select"> | ||
|
@@ -137,7 +137,7 @@ export const Composition = { | |
name="search-with-select-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11yLabel="search" | ||
></PharosButton> | ||
</PharosInputGroup> | ||
<PharosInputGroup name="my-input-group-prepend"> | ||
|
@@ -146,7 +146,7 @@ export const Composition = { | |
slot="prepend" | ||
icon="book" | ||
variant="subtle" | ||
label="book" | ||
a11yLabel="book" | ||
></PharosButton> | ||
<span slot="label">Prepend</span> | ||
</PharosInputGroup> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ export const Base = { | |
name="search-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11y-label="search" | ||
></storybook-pharos-button> | ||
</storybook-pharos-input-group> | ||
</div> | ||
|
@@ -38,7 +38,7 @@ export const Prominent = { | |
name="search-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11y-label="search" | ||
></storybook-pharos-button> | ||
</storybook-pharos-input-group> | ||
<storybook-pharos-input-group name="my-input-group" variant="prominent" invalidated> | ||
|
@@ -47,7 +47,7 @@ export const Prominent = { | |
name="search-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11y-label="search" | ||
></storybook-pharos-button> | ||
</storybook-pharos-input-group> | ||
<storybook-pharos-input-group name="prominent-prepend" variant="prominent"> | ||
|
@@ -56,7 +56,7 @@ export const Prominent = { | |
slot="prepend" | ||
icon="book" | ||
variant="subtle" | ||
label="book" | ||
a11y-label="book" | ||
></storybook-pharos-button> | ||
<span slot="label">prominent Prepend</span> | ||
</storybook-pharos-input-group> | ||
|
@@ -66,20 +66,20 @@ export const Prominent = { | |
slot="prepend" | ||
icon="book" | ||
variant="subtle" | ||
label="book" | ||
a11y-label="book" | ||
></storybook-pharos-button> | ||
<span slot="label">Multiple buttons</span> | ||
<storybook-pharos-button | ||
name="close-button" | ||
icon="close" | ||
variant="subtle" | ||
label="close" | ||
a11y-label="close" | ||
></storybook-pharos-button> | ||
<storybook-pharos-button | ||
name="search-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11y-label="search" | ||
></storybook-pharos-button> | ||
</storybook-pharos-input-group> | ||
</div> | ||
|
@@ -96,7 +96,7 @@ export const Validity = { | |
name="search-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11y-label="search" | ||
></storybook-pharos-button> | ||
</storybook-pharos-input-group> | ||
<storybook-pharos-input-group validated value="[email protected]" name="my-input-group"> | ||
|
@@ -105,7 +105,7 @@ export const Validity = { | |
name="search-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11y-label="search" | ||
></storybook-pharos-button> | ||
</storybook-pharos-input-group> | ||
</div> | ||
|
@@ -130,13 +130,13 @@ export const Composition = { | |
name="close-button" | ||
icon="close" | ||
variant="subtle" | ||
label="close" | ||
a11y-label="close" | ||
></storybook-pharos-button> | ||
<storybook-pharos-button | ||
name="search-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11y-label="search" | ||
></storybook-pharos-button> | ||
</storybook-pharos-input-group> | ||
<storybook-pharos-input-group name="my-input-group-select"> | ||
|
@@ -150,7 +150,7 @@ export const Composition = { | |
name="search-with-select-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11y-label="search" | ||
></storybook-pharos-button> | ||
</storybook-pharos-input-group> | ||
<storybook-pharos-input-group name="my-input-group-prepend"> | ||
|
@@ -159,7 +159,7 @@ export const Composition = { | |
slot="prepend" | ||
icon="book" | ||
variant="subtle" | ||
label="book" | ||
a11y-label="book" | ||
></storybook-pharos-button> | ||
<span slot="label">Prepend</span> | ||
</storybook-pharos-input-group> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.