-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tooltip): support w3c WAI-ARIA pattern
- Loading branch information
Showing
11 changed files
with
107 additions
and
118 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
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 was deleted.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
packages/oruga/src/components/tooltip/examples/triggers.vue
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,45 @@ | ||
<script setup lang="ts"> | ||
import { ref } from "vue"; | ||
const active = ref(true); | ||
</script> | ||
|
||
<template> | ||
<section class="odocs-spaced"> | ||
<o-field> | ||
<o-switch v-model="active" label="Toggle" /> | ||
</o-field> | ||
|
||
<o-tooltip | ||
label="I'm never closing" | ||
:triggers="['click']" | ||
:closeable="['outside']"> | ||
<o-button label="Click me" /> | ||
</o-tooltip> | ||
|
||
<o-tooltip | ||
label="I'm never closing" | ||
:triggers="['contextmenu']" | ||
:closeable="['outside']"> | ||
<o-button label="Right click me" /> | ||
</o-tooltip> | ||
|
||
<o-tooltip | ||
label="I'm never closing" | ||
:active="active" | ||
always | ||
position="bottom"> | ||
<o-button label="Always" /> | ||
</o-tooltip> | ||
|
||
<o-tooltip | ||
variant="danger" | ||
label="Tooltip right" | ||
position="right" | ||
:triggers="[]" | ||
:closeable="false" | ||
:active="active"> | ||
<o-button label="Toggled" /> | ||
</o-tooltip> | ||
</section> | ||
</template> |
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.