/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v22.1.1
src/dev-app/common-classes.css
89 строк
3 KB
Wagner Maciel
fix(aria/combobox): several small fixes (#32202)
06 ноя 2025, 02:17
Не верифицирован
06 ноя 2025, 02:17
c345614
Код
Авторство
О чём код?
.example-surface { background: var(--mat-sys-surface); color: var(--mat-sys-on-surface); } .example-stateful { background-color: color-mix(in srgb, var(--mat-sys-surface) 10%, transparent); } [aria-disabled='true'] .example-stateful, .example-stateful[aria-disabled='true'] { color: color-mix(in srgb, var(--mat-sys-on-surface) 70%, transparent); } .example-stateful:focus, [aria-activedescendant]:focus-within .example-stateful[data-active='true'] { background: color-mix( in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent ); } .example-stateful:hover { background: color-mix( in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent ); } .example-stateful:focus[aria-disabled='true'], .example-stateful:hover[aria-disabled='true'], [aria-disabled='true'] .example-stateful:focus, [aria-disabled='true'] .example-stateful:hover { background: var(--mat-sys-surface); } .example-selectable { color: var(--mat-sys-on-surface); outline: transparent solid 2px; } .example-selectable[aria-selected='true'], .example-selectable[aria-checked='true'], .example-selectable[aria-current], [aria-activedescendant]:focus-within .example-selectable[aria-selected='true'], [aria-activedescendant]:focus-within .example-selectable[aria-checked='true'], [aria-activedescendant]:focus-within .example-selectable[aria-current] { background: color-mix( in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent ); color: var(--mat-sys-primary); } .example-selectable:focus-within { outline: var(--mat-sys-primary) solid 2px; border-radius: var(--mat-sys-corner-extra-small); } .example-listbox[aria-disabled='true']:focus-within, .example-listbox[aria-activedescendant]:focus-within { outline: var(--mat-sys-primary) solid 1px; } [aria-disabled='true'] .example-selectable:focus-within, [aria-activedescendant] .example-selectable:focus-within { outline-color: transparent; } [aria-disabled='true'] .example-selectable[aria-selected='true'], .example-selectable[aria-disabled='true'][aria-selected='true'], [aria-disabled='true'] .example-selectable[aria-checked='true'], .example-selectable[aria-disabled='true'][aria-checked='true'], [aria-disabled='true'] .example-selectable[aria-current], .example-selectable[aria-disabled='true'][aria-current] { color: color-mix(in srgb, var(--mat-sys-on-surface) 70%, transparent); background: color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent); } .example-selectable[aria-selected='true'] .example-icon { color: var(--mat-sys-primary); } [aria-disabled='true'] .example-selectable[aria-selected='true'] .example-icon { color: color-mix(in srgb, var(--mat-sys-on-surface) 70%, transparent); }