mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
fix(input): update error text color for ionic theme (#29270)
This commit is contained in:
@ -3,8 +3,10 @@
|
|||||||
|
|
||||||
// Ionic Input
|
// Ionic Input
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
:host {
|
||||||
|
// TODO(FW-6113): Verify the ionic design token is correct once it's available and remove the hardcoded value.
|
||||||
|
--highlight-color-invalid: var(--ionic-color-error-600, #970606);
|
||||||
|
}
|
||||||
|
|
||||||
// Ionic Input Sizes
|
// Ionic Input Sizes
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
@ -20,3 +22,7 @@
|
|||||||
// TODO(FW-6112): Verify the design token is correct once it's available and remove the hardcoded value.
|
// TODO(FW-6112): Verify the design token is correct once it's available and remove the hardcoded value.
|
||||||
color: var(--ionic-color-neutral-600, #535353);
|
color: var(--ionic-color-neutral-600, #535353);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.input-bottom .error-text {
|
||||||
|
color: var(--highlight-color-invalid);
|
||||||
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { expect } from '@playwright/test';
|
import { expect } from '@playwright/test';
|
||||||
import { configs, test } from '@utils/test/playwright';
|
import { configs, test } from '@utils/test/playwright';
|
||||||
|
|
||||||
configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
configs({ directions: ['ltr'], modes: ['md', 'ios'] }).forEach(({ title, screenshot, config }) => {
|
||||||
test.describe(title('input: bottom content'), () => {
|
test.describe(title('input: bottom content'), () => {
|
||||||
test('entire input component should render correctly with no fill', async ({ page }) => {
|
test('entire input component should render correctly with no fill', async ({ page }) => {
|
||||||
await page.setContent(
|
await page.setContent(
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 914 B After Width: | Height: | Size: 911 B |
Reference in New Issue
Block a user