-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add rtl specific styles and visual tests * Update default button styles
- Loading branch information
Showing
9 changed files
with
107 additions
and
0 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 |
---|---|---|
|
@@ -60,6 +60,7 @@ | |
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
width: 100%; | ||
height: 100%; | ||
opacity: 0; | ||
|
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,50 @@ | ||
<!DOCTYPE html> | ||
|
||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
|
||
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script> | ||
<script> | ||
const theme = window.location.search.replace(/.*theme=(\w+).*/, '$1') || 'lumo'; | ||
document.write(`<link rel="import" href="../../theme/${theme}/vaadin-button.html">`); | ||
</script> | ||
|
||
<link rel="import" href="../../../vaadin-lumo-styles/icons.html"> | ||
<link rel="import" href="../../../iron-icon/iron-icon.html"> | ||
</head> | ||
|
||
<body> | ||
|
||
<form style="display: inline-block;"> | ||
<fieldset id="default-tests"> | ||
|
||
<vaadin-button disabled dir="rtl"> | ||
Disabled | ||
</vaadin-button> | ||
|
||
<vaadin-button dir="rtl"> | ||
<img src="vaadin-logo.svg"> | ||
</vaadin-button> | ||
|
||
<vaadin-button theme="tertiary" dir="rtl"> | ||
Tertiary | ||
</vaadin-button> | ||
|
||
<vaadin-button theme="large" dir="rtl"> | ||
<span>Icon suffix</span> | ||
<iron-icon slot="suffix" icon="lumo:arrow-right"></iron-icon> | ||
</vaadin-button> | ||
|
||
<vaadin-button aria-label="Icon-only button" theme="icon" dir="rtl"> | ||
<iron-icon slot="prefix" icon="lumo:plus"></iron-icon> | ||
</vaadin-button> | ||
|
||
<vaadin-button dir="rtl"> | ||
<iron-icon slot="prefix" icon="lumo:edit"></iron-icon> | ||
<span>Icon prefix</span> | ||
</vaadin-button> | ||
|
||
</fieldset> | ||
</form> | ||
|
||
</body> |
Binary file added
BIN
+10.2 KB
test/visual/screens/vaadin-button/default-rtl-tests-lumo/default/chrome.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.05 KB
test/visual/screens/vaadin-button/default-rtl-tests-lumo/default/firefox.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.03 KB
test/visual/screens/vaadin-button/default-rtl-tests-material/default/chrome.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.65 KB
test/visual/screens/vaadin-button/default-rtl-tests-material/default/firefox.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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