File tree Expand file tree Collapse file tree 5 files changed +35
-3
lines changed
projects/igniteui-angular/src/lib/core/styles/components/button Expand file tree Collapse file tree 5 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 157157 }
158158
159159 @if not ($focus-visible-foreground ) and $focus-visible-background {
160- $focus-visible-foreground : adaptive-contrast (var (--focus-visible-foreground ));
160+ $focus-visible-foreground : adaptive-contrast (var (--focus-visible-background ));
161161 }
162162
163163 @if not ($focus-visible-border-color ) and $focus-border-color {
Original file line number Diff line number Diff line change 225225 from var (--focus-visible-background ) h s l / 0.5
226226 );
227227 }
228+
229+ @if not ($disabled-background ) and $background {
230+ $disabled-background : hsla (from var (--background ) h s l / 0.5 );
231+ }
232+
233+ @if not ($disabled-icon-color ) and $disabled-foreground {
234+ $disabled-icon-color : var (--disabled-foreground );
235+ }
236+
237+ @if not ($disabled-foreground ) and $disabled-background {
238+ $disabled-foreground : hsla (from adaptive-contrast (var (--disabled-background )) h s l / 0.5 );
239+ }
240+
241+ @if not ($disabled-icon-color ) and $disabled-background {
242+ $disabled-icon-color : hsla (from adaptive-contrast (var (--disabled-background )) h s l / 0.5 );
243+ }
228244 }
229245
230246 @if not ($resting-shadow ) {
Original file line number Diff line number Diff line change 219219 from var (--focus-visible-background ) h s l / 0.5
220220 );
221221 }
222+
223+ @if not ($disabled-background ) and $background {
224+ $disabled-background : hsla (from var (--background ) h s l / 0.5 );
225+ }
226+
227+ @if not ($disabled-icon-color ) and $disabled-foreground {
228+ $disabled-icon-color : var (--disabled-foreground );
229+ }
230+
231+ @if not ($disabled-foreground ) and $disabled-background {
232+ $disabled-foreground : hsla (from adaptive-contrast (var (--disabled-background )) h s l / 0.5 );
233+ }
234+
235+ @if not ($disabled-icon-color ) and $disabled-background {
236+ $disabled-icon-color : hsla (from adaptive-contrast (var (--disabled-background )) h s l / 0.5 );
237+ }
222238 }
223239
224240 @if not ($resting-shadow ) {
Original file line number Diff line number Diff line change 140140 }
141141
142142 @if not ($focus-visible-foreground ) and $focus-visible-background {
143- $focus-visible-foreground : adaptive-contrast (var (--focus-visible-foreground ));
143+ $focus-visible-foreground : adaptive-contrast (var (--focus-visible-background ));
144144 }
145145
146146 @if not ($focus-visible-border-color ) and $focus-border-color {
Original file line number Diff line number Diff line change 139139 }
140140
141141 @if not ($focus-visible-foreground ) and $focus-visible-background {
142- $focus-visible-foreground : adaptive-contrast (var (--focus-visible-foreground ));
142+ $focus-visible-foreground : adaptive-contrast (var (--focus-visible-background ));
143143 }
144144
145145 @if not ($focus-visible-border-color ) and $focus-border-color {
You can’t perform that action at this time.
0 commit comments