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
- Loading branch information
Showing
22 changed files
with
110 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,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,69 @@ | ||
<!DOCTYPE html> | ||
|
||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
|
||
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script> | ||
<script src="../../../iron-test-helpers/mock-interactions.js"></script> | ||
<script> | ||
const theme = window.location.search.replace(/.*theme=(\w+).*/, '$1') || 'lumo'; | ||
document.write(`<link rel="import" href="../../theme/${theme}/vaadin-checkbox.html">`); | ||
document.write(`<link rel="import" href="../../theme/${theme}/vaadin-checkbox-group.html">`); | ||
document.documentElement.setAttribute('dir', 'rtl'); | ||
</script> | ||
</head> | ||
|
||
<body> | ||
|
||
<div id="default-tests" style="display: inline-block; padding: 10px;"> | ||
Are you drunk? | ||
|
||
<vaadin-checkbox> | ||
Yes | ||
</vaadin-checkbox> | ||
|
||
<vaadin-checkbox disabled> | ||
No | ||
</vaadin-checkbox> | ||
|
||
<vaadin-checkbox indeterminate> | ||
Maybe | ||
</vaadin-checkbox> | ||
|
||
<vaadin-checkbox></vaadin-checkbox> | ||
<vaadin-checkbox></vaadin-checkbox> | ||
Empty labels | ||
</div> | ||
|
||
<div id="validation-tests"> | ||
<vaadin-checkbox-group required error-message="Please choose a number" label="Choose a number" id="validation-checkbox-group"> | ||
<vaadin-checkbox value="1">1</vaadin-checkbox> | ||
<vaadin-checkbox value="2">2</vaadin-checkbox> | ||
</vaadin-checkbox-group> | ||
</div> | ||
|
||
<div id="wrapping-group-tests" style="width: 300px;"> | ||
<vaadin-checkbox-group label="Choose a number"> | ||
<vaadin-checkbox value="1">Checkbox 1</vaadin-checkbox> | ||
<vaadin-checkbox value="2">Checkbox 2</vaadin-checkbox> | ||
<vaadin-checkbox value="3">Checkbox 3</vaadin-checkbox> | ||
<vaadin-checkbox value="4">Checkbox 4</vaadin-checkbox> | ||
<vaadin-checkbox value="5">Checkbox 5</vaadin-checkbox> | ||
<vaadin-checkbox value="6">Checkbox 6</vaadin-checkbox> | ||
<vaadin-checkbox value="7">Checkbox 7</vaadin-checkbox> | ||
<vaadin-checkbox value="8">Checkbox 8</vaadin-checkbox> | ||
<vaadin-checkbox value="9">Checkbox 9</vaadin-checkbox> | ||
<vaadin-checkbox value="10">Checkbox 10</vaadin-checkbox> | ||
</vaadin-checkbox-group> | ||
</div> | ||
|
||
<script> | ||
window.addEventListener('WebComponentsReady', () => { | ||
const checkboxGroup = document.getElementById('validation-checkbox-group'); | ||
checkboxGroup.validate(); | ||
|
||
MockInteractions.keyDownOn(document.body, 9); | ||
}); | ||
</script> | ||
|
||
</body> |
Binary file added
BIN
+3.31 KB
test/visual/screens/vaadin-checkbox/default-rtl-tests-lumo/checked/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
+3.15 KB
test/visual/screens/vaadin-checkbox/default-rtl-tests-lumo/checked/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
+3.19 KB
test/visual/screens/vaadin-checkbox/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
+2.95 KB
test/visual/screens/vaadin-checkbox/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
+3.3 KB
test/visual/screens/vaadin-checkbox/default-rtl-tests-material/checked/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
+3.06 KB
test/visual/screens/vaadin-checkbox/default-rtl-tests-material/checked/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
+3.15 KB
test/visual/screens/vaadin-checkbox/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
+2.84 KB
test/visual/screens/vaadin-checkbox/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.
Binary file added
BIN
+4.11 KB
test/visual/screens/vaadin-checkbox/validation-rtl-tests-lumo/error/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
+3 KB
test/visual/screens/vaadin-checkbox/validation-rtl-tests-lumo/error/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
+3.17 KB
test/visual/screens/vaadin-checkbox/validation-rtl-tests-material/error/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
+2.82 KB
.../visual/screens/vaadin-checkbox/validation-rtl-tests-material/error/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
+6.3 KB
test/visual/screens/vaadin-checkbox/wrapping-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
+4.39 KB
test/visual/screens/vaadin-checkbox/wrapping-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
+8.14 KB
test/visual/screens/vaadin-checkbox/wrapping-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 KB
.../visual/screens/vaadin-checkbox/wrapping-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