Skip to content

Commit 0e3ef3a

Browse files
authored
Merge pull request #1017 from IgniteUI/apetrov/improving-file-input-samples
refactor(file-input): improving file input styling sample
2 parents 87a66b0 + 9496894 commit 0e3ef3a

File tree

4 files changed

+24
-23
lines changed

4 files changed

+24
-23
lines changed

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"core-js": "^3.6.5",
4343
"file-saver": "^2.0.2",
4444
"igniteui-dockmanager": "1.16.0",
45-
"igniteui-webcomponents": "6.1.0",
45+
"igniteui-webcomponents": "6.1.2",
4646
"igniteui-webcomponents-charts": "6.0.0",
4747
"igniteui-webcomponents-core": "6.0.0",
4848
"igniteui-webcomponents-dashboards": "6.0.0",

samples/inputs/file-input/styling/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@webcomponents/template": "^1.4.2",
2424
"babel-runtime": "^6.26.0",
2525
"core-js": "^3.6.5",
26-
"igniteui-webcomponents": "6.1.0",
26+
"igniteui-webcomponents": "6.1.2",
2727
"lit": "^3.2.0",
2828
"lit-html": "^3.2.0",
2929
"tslib": "^2.0.0"
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
igc-file-input {
2-
--blackground: var(--ig-primary-700);
3-
--foreground: var(--ig-primary-700-contrast);
1+
igc-file-input::part(label) {
2+
color: var(--ig-gray-600);
43
}
54

6-
igc-file-input:focus::part(suffix),
7-
igc-file-input::part(file-selector-button),
85
igc-file-input::part(suffix) {
9-
/* Style the file selector button */
10-
--input-prefix-background: var(--blackground);
11-
--input-prefix-color: var(--foreground);
12-
13-
/* Style the custom suffix */
14-
--input-suffix-background: var(--blackground);
15-
--input-suffix-background--focused: var(--blackground);
16-
--input-suffix-background--filled: var(--blackground);
17-
18-
color: var(--foreground);
6+
background: var(--ig-primary-700);
7+
color: var(--ig-primary-700-contrast);
198
}
209

21-
igc-file-input::part(label) {
22-
color: var(--ig-gray-600);
10+
igc-file-input::part(file-names) {
11+
--file-names-foreground: var(--ig-gray-400);
12+
--file-names-foreground--filled: var(--ig-gray-900);
13+
14+
background: var(--ig-primary-50);
2315
}
2416

17+
igc-file-input::part(file-selector-button) {
18+
--file-selector-button-foreground: var(--ig-primary-700-contrast);
19+
--file-selector-button-background: var(--ig-primary-700);
20+
--file-selector-button-foreground--focused: var(--ig-primary-900-contrast);
21+
--file-selector-button-background--focused: var(--ig-primary-900);
22+
--file-selector-button-foreground--filled: var(--ig-primary-700-contrast);
23+
--file-selector-button-background--filled: var(--ig-primary-700);
24+
}

0 commit comments

Comments
 (0)