fix(input): update error text color for ionic theme (#29270)

This commit is contained in:
Maria Hutt
2024-04-04 11:14:18 -07:00
committed by GitHub
parent 3a1e70d6fd
commit 5b62a1eafc
5 changed files with 9 additions and 3 deletions

View File

@ -3,8 +3,10 @@
// 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
// --------------------------------------------------
@ -20,3 +22,7 @@
// 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);
}
.input-bottom .error-text {
color: var(--highlight-color-invalid);
}

View File

@ -1,7 +1,7 @@
import { expect } from '@playwright/test';
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('entire input component should render correctly with no fill', async ({ page }) => {
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