Skip to content

Commit 2081939

Browse files
committed
Fixes #24450 by making the icon grey only on hover and white otherwise.
1 parent fef42f4 commit 2081939

3 files changed

Lines changed: 6 additions & 16 deletions

File tree

apps/theming/css/theming.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,10 @@ $invert: luma($color-primary) > 0.6;
9292
}
9393

9494
/* Colorized svg images */
95-
.icon-file, .icon-filetype-text, .icon-file-white:hover {
95+
.icon-file, .icon-filetype-text, .icon-file-white:hover, .icon-file-white:focus {
9696
background-image: url(./img/core/filetypes/text.svg?v=#{$theming-cachebuster});
9797
}
9898

99-
.icon-file-white, .icon-filetype-text-white {
100-
background-image: url(./img/core/filetypes/text-white.svg?v=#{$theming-cachebuster});
101-
}
102-
10399
.icon-folder, .icon-filetype-folder {
104100
background-image: url(./img/core/filetypes/folder.svg?v=#{$theming-cachebuster});
105101
}

core/css/icons.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,15 @@ audio, canvas, embed, iframe, img, input, object, video {
384384
}
385385

386386
.icon-file,
387-
.icon-file-white,
388-
.icon-filetype-text,
389387
.icon-filetype-text {
390388
@include icon-color('text', 'filetypes', #969696, 1, true);
391389
}
392390

391+
.icon-file-white,
392+
.icon-filetype-text-white {
393+
@include icon-color('text', 'filetypes', $color-white, 1, true);
394+
}
395+
393396
.icon-filetype-file {
394397
@include icon-color('file', 'filetypes', #969696, 1, true);
395398
}

core/img/filetypes/text-white.svg

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)