Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8e23dac
feat(): add forced-colors styles to the components
adrianptrv Aug 21, 2026
16d8b14
Merge branch 'master' into apetrov/forced-colors
adrianptrv Aug 21, 2026
1a401c6
chore(): fix lint errors
adrianptrv Aug 21, 2026
287477a
Merge branch 'master' into apetrov/forced-colors
simeonoff Aug 24, 2026
1bebfa1
Merge branch 'master' into apetrov/forced-colors
simeonoff Aug 24, 2026
df11d99
Merge branch 'master' into apetrov/forced-colors
rkaraivanov Aug 24, 2026
ff78352
feat(): additional component changes
adrianptrv Aug 24, 2026
3e718dc
Merge branch 'master' into apetrov/forced-colors
desig9stein Aug 26, 2026
973302a
Merge branch 'master' into apetrov/forced-colors
simeonoff Sep 1, 2026
71e9861
Merge branch 'master' into apetrov/forced-colors
adrianptrv Sep 1, 2026
6793676
Merge branch 'master' into apetrov/forced-colors
simeonoff Sep 1, 2026
a495e72
fix(): calendar, color-picker, tile-manager and input fixes
adrianptrv Sep 4, 2026
cd150b5
fix(select): remove unnecessary code
adrianptrv Sep 4, 2026
70add83
Merge branch 'master' into apetrov/forced-colors
desig9stein Sep 8, 2026
59ce463
chore(): fix lint errors
adrianptrv Sep 8, 2026
8f2c260
fix(slider): tick color
adrianptrv Sep 8, 2026
50f6010
fix: selector for focused thumb in slider styles
simeonoff Sep 8, 2026
ece5192
style(forced-colors): change outline-offset to use rem units
simeonoff Sep 8, 2026
8e9a778
style(forced-colors): border color in date picker theme
simeonoff Sep 8, 2026
6962bd7
style(forced-colors): change outline-offset to use rem unit
simeonoff Sep 8, 2026
ebe9240
style(forced-colors): fix SCSS syntax for input component after pseud…
simeonoff Sep 8, 2026
6d27607
style(forced-colors): change outline-offset to use rem unit
simeonoff Sep 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/components/avatar/themes/avatar.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ img {
:host([shape='square']) [part='base'] {
border-radius: 0;
}

@media (forced-colors: active) {
[part='base'] {
border: rem(1px) solid CanvasText;
}
}
6 changes: 6 additions & 0 deletions src/components/badge/themes/badge.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,9 @@
:host([dot]) [part~='base'] {
border-radius: calc(var(--_badge-size) * 2);
}

@media (forced-colors: active) {
[part~='base'] {
border: rem(1px) solid CanvasText;
}
}
6 changes: 6 additions & 0 deletions src/components/banner/themes/banner.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,9 @@
:host([open]) [part~='base'] {
height: auto;
}

@media (forced-colors: active) {
[part~='spacer'] {
border-block-end: rem(1px) solid CanvasText;
}
}
6 changes: 6 additions & 0 deletions src/components/banner/themes/shared/banner.indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ $theme: $indigo;

color: var-get($theme, 'banner-message-color');
}

@media (forced-colors: active) {
[part~='spacer'] {
border: rem(1px) solid CanvasText;
}
}
6 changes: 6 additions & 0 deletions src/components/calendar/themes/calendar.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,9 @@
.aria-off-screen {
@include hide-default();
}

@media (forced-colors: active) {
[part~='header'] {
border: rem(1px) solid CanvasText;
}
}
37 changes: 37 additions & 0 deletions src/components/calendar/themes/days-view.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,40 @@ $row-gap: rem(4px);
[part~='hidden'] {
visibility: hidden;
}

@media (forced-colors: active) {
:host {
[part~='current'] {
--date-current-border-color: LinkText;
--date-current-hover-border-color: LinkText;
--date-current-focus-border-color: LinkText;
}

[part~='inactive'] [part~='inactive'] {
border: none;
}

[part~='selected'] {
--date-selected-border-color: Highlight;
--date-selected-focus-border-color: Highlight;
--date-selected-hover-border-color: Highlight;
--date-selected-current-border-color: Highlight;
--date-selected-current-focus-border-color: Highlight;
--date-selected-current-hover-border-color: Highlight;
}

[part~='disabled'] {
--date-border-color: GrayText;
--date-disabled-foreground: GrayText;
}

[part~='date'][part~='last'][part~='range'][part~='preview'],
[part~='date'][part~='first'][part~='range'][part~='preview'] {
border-block: 0;
}

[part~='date'][part~='range'] {
--date-range-border-color: Highlight;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,27 @@ $theme: $bootstrap;
color: var-get($theme, 'navigation-focus-color');
}
}

@media (forced-colors: active) {
[part~='content'] {
border: rem(1px) solid CanvasText;
}

:host(:not([header-orientation='vertical'])) [part~="header"] {
border-block-end: none;
}

:host([header-orientation='vertical']) {
[part~='content'] {
border-inline-start: none;
}

[part~='navigation'] {
border-block-start: rem(1px) solid CanvasText;
}
}

:host:has([part~='header']) [part~='content'] {
border-block-start: none;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -635,3 +635,31 @@ $border-size: rem(1px);
}
}

@media (forced-colors: active) {
:host {
[part~='date'] {
border-block: none;
}

[part~='special'] [part~='special']::after {
width: var-get($theme, 'inner-size');
height: var-get($theme, 'inner-size');
}

[part~='date'][part~='range'][part~='selected'] {
border-block: rem(1px) solid Highlight;

&[part~='first'],
&[part~='last'] {
border-block: 0;
}
}

[part~='date'][part~='last'][part~='range'][part~='preview'],
[part~='date'][part~='first'][part~='range'][part~='preview'] {
&::after {
border-block-width: rem(3px);
}
}
}
}
36 changes: 36 additions & 0 deletions src/components/calendar/themes/shared/fluent/days-view.fluent.scss
Original file line number Diff line number Diff line change
Expand Up @@ -725,3 +725,39 @@ $fake-bg-position: calc(50% - (var-get($theme, 'size') / 2));
background: var-get($theme, 'date-selected-range-focus-background');
}
}

@media (forced-colors: active) {
:host {
[part~='date'] {
border-block: none;
}

[part~='selected'] {
--date-selected-current-border-color: LinkText;
--date-selected-current-focus-border-color: LinkText;
}

[part~='week-number-inner']::after {
height: rem(6px);
bottom: 100%;
}

[part~='date'][part~='range'][part~='selected'] {
border-block: rem(1px) solid Highlight;

&[part~='first'],
&[part~='last'] {
border-block: 0;

&::before {
border-block-color: Highlight;
border-inline-color: Highlight;
}
}
}

[part~='date'][part~='range'][part~='preview'] {
border-block: rem(1px) solid CanvasText;
}
}
}
20 changes: 20 additions & 0 deletions src/components/calendar/themes/shared/indigo/calendar.indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,23 @@ $theme: $indigo;
[part='header-date'] {
@include type-style('h5');
}

@media (forced-colors: active) {
[part~='content'] {
border: rem(1px) solid CanvasText;
}

:host:has([part~='header']) [part~='content'] {
border-block-start: none;
}

:host([header-orientation='vertical']) {
[part~='content'] {
border-inline-start: none;
}

[part~='navigation'] {
border-block-start: rem(1px) solid CanvasText;
}
}
}
20 changes: 20 additions & 0 deletions src/components/calendar/themes/shared/indigo/days-view.indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -688,3 +688,23 @@ $week-number-radius: var-get($theme, 'week-number-border-radius');
background: var-get($theme, 'date-selected-range-focus-background');
}
}

@media (forced-colors: active) {
[part~='week-number-inner'] {
border-block: none;

&::after {
height: rem(6px);
bottom: 100%;
border-inline: rem(1px) solid CanvasText;
}
}

[part~='days-row']:first-of-type [part~='week-number-inner'] {
border-block-start: rem(1px) solid CanvasText;
}

[part~='days-row']:last-of-type [part~='week-number-inner'] {
border-block-end: rem(1px) solid CanvasText;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -476,3 +476,21 @@ $week-number-radius: var-get($theme, 'week-number-border-radius');
background: var-get($theme, 'date-selected-range-focus-background');
}
}

@media (forced-colors: active) {
[part~='special'] [part~='special'] {
border-width: rem(2px);
}

[part~='week-number-inner']::after {
height: rem(6px);
bottom: 100%;
}

[part~='date'][part~='range'][part~='selected'] {
&[part~='first'],
&[part~='last'] {
border-block: 0;
}
}
}
23 changes: 23 additions & 0 deletions src/components/calendar/themes/year-month-view.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,26 @@
margin: 0;
}

@media (forced-colors: active) {
:host {
[part~='month'] [part~='month-inner'],
[part~='year'] [part~='year-inner'] {
outline-offset: rem(-1px);
}

[part~='month']:hover [part~='month-inner'],
[part~='year']:hover [part~='year-inner'] {
outline: rem(1px) solid CanvasText;
}

[part~='current'] [part~='current'],
[part~='current']:hover [part~='current'] {
outline: rem(1px) solid LinkText;
}

[part~='selected'] [part~='selected'],
[part~='selected']:hover [part~='selected'] {
outline: rem(1px) solid Highlight;
}
}
}
6 changes: 6 additions & 0 deletions src/components/card/themes/container.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@
backface-visibility: hidden;
transition: box-shadow .1s ease-out;
}

@media (forced-colors: active) {
:host([elevated]) {
border: rem(1px) solid CanvasText;
}
}
12 changes: 12 additions & 0 deletions src/components/carousel/themes/carousel.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,15 @@ igc-button::part(base) {
padding: pad-block(rem(4px)) pad-inline(rem(6px));
}
}

@media (forced-colors: active) {
:host {
[part='dot active']::after {
border: rem(3px) solid CanvasText;
}

[part~='dot']:hover {
border-color: Highlight;
}
}
}
8 changes: 8 additions & 0 deletions src/components/carousel/themes/shared/carousel.indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,11 @@ igc-carousel-indicator {
min-width: rem(16px);
min-height: rem(16px);
}

@media (forced-colors: active) {
:host {
[part~='dot']::after {
border: rem(4px) solid CanvasText;
}
}
}
6 changes: 6 additions & 0 deletions src/components/chat/themes/chat.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,9 @@ igc-list-item::part(title) {
transform: scale(1.1);
}
}

@media (forced-colors: active) {
[part~='header'] {
border-block-end: rem(1px) solid CanvasText;
}
}
6 changes: 6 additions & 0 deletions src/components/chat/themes/message.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,9 @@
max-width: rem(576px);
width: fit-content;
}

@media (forced-colors: active) {
[part~='message-container'] {
border: rem(1px) solid CanvasText;
}
}
25 changes: 25 additions & 0 deletions src/components/checkbox/themes/checkbox.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,28 @@ label {
order: -1;
}
}

@media (forced-colors: active) {
[part~='control'] {
--tick-color: CanvasText;
}

:host([disabled]) [part~='base'],
:host(:disabled) [part~='base'] {
[part~='control']::after,
[part~='control'] {
--disabled-tick-color: GrayText;

border-color: GrayText;
}

[part~='label'] {
color: GrayText;
}
}

:host(:focus) [part~='control']::after,
:host(:hover) [part~='control']::after {
border-color: Highlight !important;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,17 @@ $theme: $bootstrap;
box-shadow: none;
}
}

@media (forced-colors: active) {
:host [part~='control'] {
--fill-color: transparent;
--fill-color-hover: transparent;

border: rem(1px) solid CanvasText;
}

:host(:focus) [part~='control'],
:host(:hover) [part~='control'] {
border-color: Highlight;
}
}
Loading