-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- adds new toggletip component - refactor to new floating-ui top layer support Signed-off-by: Cory Rylan <cory@coryrylan.com>
- Loading branch information
Showing
24 changed files
with
1,180 additions
and
1,432 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import schema from '../../../../packages/components/dist/drafter/schema.json' assert { type: 'json' }; | ||
import { getImport, getExample, getAPI } from '../../_includes/utils/index.js'; | ||
|
||
export const data = { | ||
title: 'Toggletip', | ||
aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/', | ||
schema: schema.find(c => c.name === 'toggletip') | ||
}; | ||
|
||
export function render() { | ||
return /* markdown */` | ||
The toggletip component is used to provide explanations, definitions, or supplementary interactions for a given element. It should be used to provide additional information or actions that are not essential to the user's understanding of the content, but that may be helpful or informative. | ||
${getExample(data.schema, 'example')} | ||
${getExample(data.schema, 'position')} | ||
${getImport(data.schema)} | ||
## Accessibility | ||
- The component should be fully navigable using only the keyboard, allowing users to easily move between different toggletip. | ||
- The component should also provide a clear visual indication of focus for keyboard only users. | ||
${getAPI(data.schema)} | ||
`; | ||
} |
Oops, something went wrong.