-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Lumo custom CSS properties to set focus-ring (#6634)
- Loading branch information
1 parent
fb06ef3
commit fc54a1d
Showing
24 changed files
with
150 additions
and
29 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,80 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Focus ring</title> | ||
<script type="module" src="./common.js"></script> | ||
|
||
<script type="module"> | ||
import '@vaadin/avatar'; | ||
import '@vaadin/button'; | ||
import '@vaadin/checkbox'; | ||
import '@vaadin/combo-box'; | ||
import '@vaadin/date-picker'; | ||
import '@vaadin/details'; | ||
import '@vaadin/item'; | ||
import '@vaadin/list-box'; | ||
import '@vaadin/radio-group'; | ||
import '@vaadin/password-field'; | ||
import '@vaadin/rich-text-editor'; | ||
import '@vaadin/tabs'; | ||
import '@vaadin/text-field'; | ||
</script> | ||
|
||
<style> | ||
html { | ||
--vaadin-focus-ring-color: purple; | ||
--vaadin-focus-ring-width: 1px; | ||
} | ||
|
||
vaadin-button { | ||
--vaadin-focus-ring-color: green; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<vaadin-avatar></vaadin-avatar> | ||
|
||
<vaadin-button>Button</vaadin-button> | ||
|
||
<vaadin-checkbox label="Checkbox"></vaadin-checkbox> | ||
|
||
<vaadin-radio-group label="Radio group"> | ||
<vaadin-radio-button value="y" label="Yes"></vaadin-radio-button> | ||
<vaadin-radio-button value="n" label="No"></vaadin-radio-button> | ||
</vaadin-radio-group> | ||
|
||
<vaadin-details summary="Details"> | ||
<div>Toggle using mouse, Enter and Space keys.</div> | ||
</vaadin-details> | ||
|
||
<br /> | ||
|
||
<vaadin-list-box> | ||
<vaadin-item>Foo</vaadin-item> | ||
<vaadin-item>Bar</vaadin-item> | ||
</vaadin-list-box> | ||
|
||
<br /> | ||
|
||
<vaadin-combo-box label="Combo box" items='["Foo", "Bar", "Baz"]'></vaadin-combo-box> | ||
|
||
<vaadin-text-field label="Text field"></vaadin-text-field> | ||
|
||
<vaadin-password-field label="Password field"></vaadin-password-field> | ||
|
||
<vaadin-date-picker label="Date picker"></vaadin-date-picker> | ||
|
||
<vaadin-tabs> | ||
<vaadin-tab>Foo</vaadin-tab> | ||
<vaadin-tab>Bar</vaadin-tab> | ||
</vaadin-tabs> | ||
|
||
<br /> | ||
|
||
<vaadin-rich-text-editor></vaadin-rich-text-editor> | ||
</body> | ||
</html> |
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
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
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.