Skip to content

Commit a791fe6

Browse files
authored
Merge pull request #438 from db-ui/fix-icons-for-input
fix(input): filled icons for inputstate
2 parents 55d27e6 + e1573c7 commit a791fe6

File tree

2 files changed

+15
-2
lines changed
  • packages/components/src/components/input
  • showcases/react-showcase/src/components/input

2 files changed

+15
-2
lines changed

packages/components/src/components/input/input.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@
289289

290290
&::after,
291291
&::before {
292-
--icon-font-family: var(--db-base-icon-font-family);
292+
--icon-font-family: var(--db-base-icon-font-family-filled);
293293
--icon-font-size: var(--db-base-icon-font-size);
294294
right: 0;
295295
}
@@ -325,7 +325,9 @@
325325

326326
& ~ .icon-input-state,
327327
& ~ .icon-input-state .db-icon {
328-
@include icon(glyph(error), 20, "filled", "after", false);
328+
// TODO fix this workaround after new icon implementation
329+
--icon-glyph: "\e1123";
330+
@include icon(glyph(error), 24, "outline", "after", true);
329331
}
330332
}
331333

showcases/react-showcase/src/components/input/index.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,17 @@ const variants: DefaultComponentVariants[] = [
8282
/>
8383
)
8484
},
85+
{
86+
name: 'Invalid',
87+
example: (
88+
<DBInput
89+
label={defaultLabelText}
90+
minLength={5}
91+
required={true}
92+
description="minLength=5"
93+
/>
94+
)
95+
},
8596
{
8697
name: 'Disabled',
8798
example: (

0 commit comments

Comments
 (0)