-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(keyboard-navigation): migrate keyboard-navigation component to c…
…omposition API
- Loading branch information
1 parent
1bffd7c
commit 34eb986
Showing
5 changed files
with
166 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
27 changes: 27 additions & 0 deletions
27
packages/_vue3-migration-test/src/components/test-base-keyboard-navigation.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,27 @@ | ||
<template> | ||
<SearchInput /> | ||
<BaseKeyboardNavigation> | ||
<ul> | ||
<li> | ||
<button>First</button> | ||
</li> | ||
<li> | ||
<button>Second</button> | ||
</li> | ||
<li> | ||
<button>Third</button> | ||
</li> | ||
</ul> | ||
</BaseKeyboardNavigation> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import BaseKeyboardNavigation from '../../../x-components/src/components/base-keyboard-navigation.vue'; | ||
import SearchInput from '../../../x-components/src/x-modules/search-box/components/search-input.vue'; | ||
</script> | ||
|
||
<style> | ||
button:focus-visible { | ||
border: 3px solid red; | ||
} | ||
</style> |
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