-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tooltip: Update the component markup for a11y remediations & refactor…
… the existing styles towards more static styling (#3032) * Refactor tooltip markup without styled components and apply a11y remediations * experiment tooltip * checking interactive elements and clean the code a bit * add another story * style fixes and more stories * refactor it to use internal open state and make css presudo classes redundant * apply code review feedback * Refactor the styles to use data-attr and styled-components * update events * align and wrap styles with data attr * remove unused var * restructure markup and make tooltip hoverable * wrap up, clean up, interactive children * Apply suggestions from code review Co-authored-by: Josh Black <joshblack@github.com> * code review feedback * add outline for force-color media * Add unit tests * check the trigger element's content for label * useOnEscapePress hook to close the tooltip when mouse is hovering over the trigger element * fix tests * docs and move tooltip into folder * Update generated/components.json * add changeset * fix imports * update snapshot * update snapshot * default value to the docs * Update generated/components.json * snaps * remove snapshot tests --------- Co-authored-by: Josh Black <joshblack@github.com> Co-authored-by: broccolinisoup <broccolinisoup@users.noreply.github.com>
- Loading branch information
1 parent
4c2d121
commit 1588989
Showing
17 changed files
with
851 additions
and
1,941 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,5 @@ | ||
--- | ||
'@primer/react': minor | ||
--- | ||
|
||
Tooltip: Address accessibility remediations and refactor styles towards more static styling |
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.