-
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.
fix: add missing RTL styles and visual tests (#2574)
- Loading branch information
1 parent
ac319b3
commit 30cec7e
Showing
40 changed files
with
126 additions
and
79 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
packages/vaadin-date-picker/src/vaadin-date-picker-styles.js
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,22 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2021 Vaadin Ltd. | ||
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
import { css } from '@vaadin/vaadin-themable-mixin/register-styles.js'; | ||
|
||
export const datePickerStyles = css` | ||
:host([dir='rtl']) [part='input-field'] { | ||
direction: ltr; | ||
} | ||
:host([dir='rtl']) [part='value']::placeholder { | ||
direction: rtl; | ||
text-align: left; | ||
} | ||
:host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder { | ||
direction: rtl; | ||
text-align: left; | ||
} | ||
`; |
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added
BIN
+2.67 KB
...e-picker/test/visual/lumo/screenshots/date-picker/baseline/rtl-clear-button.png
Loading
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.31 KB
...-picker/test/visual/lumo/screenshots/date-picker/baseline/rtl-error-message.png
Loading
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
+1.37 KB
...te-picker/test/visual/lumo/screenshots/date-picker/baseline/rtl-helper-text.png
Loading
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
+1.28 KB
...din-date-picker/test/visual/lumo/screenshots/date-picker/baseline/rtl-label.png
Loading
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
+1.88 KB
...te-picker/test/visual/lumo/screenshots/date-picker/baseline/rtl-placeholder.png
Loading
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
+959 Bytes
...in-date-picker/test/visual/lumo/screenshots/date-picker/baseline/rtl-prefix.png
Loading
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
+1.34 KB
...-date-picker/test/visual/lumo/screenshots/date-picker/baseline/rtl-required.png
Loading
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.37 KB
...din-date-picker/test/visual/lumo/screenshots/date-picker/baseline/rtl-value.png
Loading
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added
BIN
+1.53 KB
...cker/test/visual/material/screenshots/date-picker/baseline/rtl-clear-button.png
Loading
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
+1.98 KB
...ker/test/visual/material/screenshots/date-picker/baseline/rtl-error-message.png
Oops, something went wrong.
Binary file added
BIN
+1.08 KB
...icker/test/visual/material/screenshots/date-picker/baseline/rtl-helper-text.png
Oops, something went wrong.
Binary file added
BIN
+1.04 KB
...date-picker/test/visual/material/screenshots/date-picker/baseline/rtl-label.png
Oops, something went wrong.
Binary file added
BIN
+1.2 KB
...icker/test/visual/material/screenshots/date-picker/baseline/rtl-placeholder.png
Oops, something went wrong.
Binary file added
BIN
+717 Bytes
...ate-picker/test/visual/material/screenshots/date-picker/baseline/rtl-prefix.png
Oops, something went wrong.
Binary file added
BIN
+1.13 KB
...e-picker/test/visual/material/screenshots/date-picker/baseline/rtl-required.png
Oops, something went wrong.
Binary file added
BIN
+1.36 KB
...date-picker/test/visual/material/screenshots/date-picker/baseline/rtl-value.png
Oops, something went wrong.
Binary file modified
BIN
-14 Bytes
(99%)
...ime-picker/test/visual/lumo/screenshots/date-time-picker/baseline/rtl-basic.png
Oops, something went wrong.
Binary file modified
BIN
-13 Bytes
(100%)
...er/test/visual/lumo/screenshots/date-time-picker/baseline/rtl-error-message.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...picker/test/visual/material/screenshots/date-time-picker/baseline/rtl-basic.png
Oops, something went wrong.
Binary file modified
BIN
-4 Bytes
(100%)
...est/visual/material/screenshots/date-time-picker/baseline/rtl-error-message.png
Oops, something went wrong.