-
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.
* feat(button): add ability to pass down ARIA attributes * feat(button): add reference to new button types Including the ExpandedState type reference for other components that consume the button. These threw errors when initially compiling so there may be other such commponents that eventually need a similar update. * feat(button): attempt at updating storybook example * feat(button): remove test code for popupstate * feat(button): add aria-haspopup * chore(changeset): add changeset * feat(button): update label attr to a11y-label * feat(button): replace property for ButtonVariant * feat(button): allow backwards compatibility Gives warning if using deprecated attributes, updating aria-pressed * feat(button): update storybook aria-pressed * feat(button): remove fallback from major release * feat(button): add a11y attributes typing * test(button): add tests for new aria attributes * feat(button): add ability to pass down ARIA attributes * feat(button): add reference to new button types Including the ExpandedState type reference for other components that consume the button. These threw errors when initially compiling so there may be other such commponents that eventually need a similar update. * feat(button): attempt at updating storybook example * feat(button): remove test code for popupstate * feat(button): add aria-haspopup * chore(changeset): add changeset * feat(button): update label attr to a11y-label * feat(button): replace property for ButtonVariant * feat(button): allow backwards compatibility Gives warning if using deprecated attributes, updating aria-pressed * feat(button): update storybook aria-pressed * feat(button): remove fallback from major release * feat(button): add a11y attributes typing * test(button): add tests for new aria attributes * fix(a11y attributes): update AriaHiddenState name * fix(button): remove ts ignore * feat(button): remove backwards compat * feat(button): add aria-disabled back * test(button): add a11y-label to new components * fix: remove sidenav button from bad merge * test(button): fix aria-pressed in toggle buttons * Update packages/pharos/src/components/sidenav/PharosSidenav.react.stories.jsx Co-authored-by: Dane Hillard <[email protected]> * Update packages/pharos/src/components/toast/pharos-toast-button.ts Co-authored-by: Dane Hillard <[email protected]> * fix(btn): remove aria-description --------- Co-authored-by: Dane Hillard <[email protected]>
- Loading branch information
1 parent
a7279ce
commit f8342cc
Showing
34 changed files
with
145 additions
and
124 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,7 @@ | ||
--- | ||
'@ithaka/pharos': major | ||
--- | ||
|
||
Add additional ARIA attributes for Pharos button | ||
and use a new naming convention for these specific | ||
pharos 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
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" | ||
a11y-label="search" | ||
></PharosButton> | ||
</PharosInputGroup> | ||
</div> | ||
|
@@ -60,7 +60,7 @@ export const Prominent = { | |
name="search-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11y-label="search" | ||
></PharosButton> | ||
</PharosInputGroup> | ||
</div> | ||
|
@@ -82,7 +82,7 @@ export const Validity = { | |
name="search-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11y-label="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" | ||
a11y-label="search" | ||
></PharosButton> | ||
</PharosInputGroup> | ||
</div> | ||
|
@@ -117,13 +117,13 @@ export const Composition = { | |
name="close-button" | ||
icon="close" | ||
variant="subtle" | ||
label="close" | ||
a11y-label="close" | ||
></PharosButton> | ||
<PharosButton | ||
name="search-button" | ||
icon="search" | ||
variant="subtle" | ||
label="search" | ||
a11y-label="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" | ||
a11y-label="search" | ||
></PharosButton> | ||
</PharosInputGroup> | ||
<PharosInputGroup name="my-input-group-prepend"> | ||
|
@@ -146,7 +146,7 @@ export const Composition = { | |
slot="prepend" | ||
icon="book" | ||
variant="subtle" | ||
label="book" | ||
a11y-label="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
Oops, something went wrong.