-
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.
test: disable error-message transition in visual tests (#7830)
- Loading branch information
1 parent
1dcf85e
commit 40d1e32
Showing
23 changed files
with
113 additions
and
8 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,11 @@ | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
|
||
registerStyles( | ||
'vaadin-checkbox-group', | ||
css` | ||
/* Show error message immediately */ | ||
[part='error-message'] { | ||
transition: none !important; | ||
} | ||
`, | ||
); |
1 change: 1 addition & 0 deletions
1
packages/checkbox-group/test/visual/lumo/checkbox-group.test.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
1 change: 1 addition & 0 deletions
1
packages/checkbox-group/test/visual/material/checkbox-group.test.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
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,11 @@ | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
|
||
registerStyles( | ||
'vaadin-checkbox', | ||
css` | ||
/* Show error message immediately */ | ||
[part='error-message'] { | ||
transition: none !important; | ||
} | ||
`, | ||
); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
|
||
registerStyles( | ||
'vaadin-custom-field vaadin-date-picker vaadin-number-field vaadin-text-field', | ||
css` | ||
/* Show error message immediately */ | ||
[part='error-message'] { | ||
transition: none !important; | ||
} | ||
`, | ||
); |
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
1 change: 1 addition & 0 deletions
1
packages/custom-field/test/visual/material/custom-field.test.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
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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
|
||
/* Hide caret */ | ||
registerStyles( | ||
'vaadin-date-picker', | ||
css` | ||
/* Hide caret */ | ||
:host([focused]) ::slotted(input) { | ||
caret-color: transparent; | ||
} | ||
/* Show error message immediately */ | ||
[part='error-message'] { | ||
transition: none !important; | ||
} | ||
`, | ||
); |
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,13 +1,18 @@ | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
|
||
/* Hide caret */ | ||
registerStyles( | ||
'vaadin-multi-select-combo-box', | ||
css` | ||
/* Hide caret */ | ||
:host([focused][focus-ring]) ::slotted(input), | ||
:host([focused][has-value]) ::slotted(input), | ||
:host([focused][opened]) ::slotted(input) { | ||
caret-color: transparent !important; | ||
} | ||
/* Show error message immediately */ | ||
[part='error-message'] { | ||
transition: none !important; | ||
} | ||
`, | ||
); |
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,11 +1,16 @@ | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
|
||
/* Hide caret */ | ||
registerStyles( | ||
'vaadin-number-field', | ||
css` | ||
/* Hide caret */ | ||
:host([focus-ring]) ::slotted(input) { | ||
caret-color: transparent; | ||
} | ||
/* Show error message immediately */ | ||
[part='error-message'] { | ||
transition: none !important; | ||
} | ||
`, | ||
); |
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,11 @@ | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
|
||
registerStyles( | ||
'vaadin-radio-group', | ||
css` | ||
/* Show error message immediately */ | ||
[part='error-message'] { | ||
transition: none !important; | ||
} | ||
`, | ||
); |
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,11 @@ | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
|
||
registerStyles( | ||
'vaadin-select', | ||
css` | ||
/* Show error message immediately */ | ||
[part='error-message'] { | ||
transition: none !important; | ||
} | ||
`, | ||
); |
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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
|
||
/* Hide caret */ | ||
registerStyles( | ||
'vaadin-text-area', | ||
css` | ||
/* Hide caret */ | ||
::slotted(textarea) { | ||
caret-color: transparent; | ||
} | ||
/* Show error message immediately */ | ||
[part='error-message'] { | ||
transition: none !important; | ||
} | ||
`, | ||
); |
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,11 +1,16 @@ | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
|
||
/* Hide caret */ | ||
registerStyles( | ||
'vaadin-text-field', | ||
css` | ||
/* Hide caret */ | ||
:host([focus-ring]) ::slotted(input) { | ||
caret-color: transparent; | ||
} | ||
/* Show error message immediately */ | ||
[part='error-message'] { | ||
transition: none !important; | ||
} | ||
`, | ||
); |
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,12 +1,17 @@ | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
|
||
/* Hide caret */ | ||
registerStyles( | ||
'vaadin-time-picker', | ||
css` | ||
/* Hide caret */ | ||
:host([focus-ring]) ::slotted(input), | ||
:host([opened]) ::slotted(input) { | ||
caret-color: transparent; | ||
} | ||
/* Show error message immediately */ | ||
[part='error-message'] { | ||
transition: none !important; | ||
} | ||
`, | ||
); |