Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: preserve ltr on input and overlay (#146)
* fix: make input and overlay work from left-to-right in RTL * Update screenshots
- Loading branch information
1 parent
7768e5b
commit 44a50ad
Showing
8 changed files
with
59 additions
and
2 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
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<link rel="import" href="../../../vaadin-text-field/theme/lumo/vaadin-text-field.html"> | ||
|
||
<dom-module id="lumo-time-picker-text-field" theme-for="vaadin-time-picker-text-field"> | ||
<template> | ||
<style> | ||
:not(*):placeholder-shown, /* to prevent broken styles on IE */ | ||
:host([dir="rtl"]) [part="value"]:placeholder-shown, | ||
:host([dir="rtl"]) [part="input-field"] ::slotted(input:placeholder-shown) { | ||
--_lumo-text-field-overflow-mask-image: none; | ||
} | ||
|
||
:host([dir="rtl"]) [part="value"], | ||
:host([dir="rtl"]) [part="input-field"] ::slotted(input) { | ||
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em); | ||
} | ||
</style> | ||
</template> | ||
</dom-module> |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
<link rel="import" href="vaadin-time-picker-styles.html"> | ||
<link rel="import" href="vaadin-time-picker-text-field-styles.html"> | ||
<link rel="import" href="../../src/vaadin-time-picker.html"> |