@momentum-design/components 0.144.3 → 0.144.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -173,8 +173,8 @@
|
|
|
173
173
|
"attribute": "disabled",
|
|
174
174
|
"reflects": true,
|
|
175
175
|
"inheritedFrom": {
|
|
176
|
-
"name": "
|
|
177
|
-
"module": "
|
|
176
|
+
"name": "AccordionButton",
|
|
177
|
+
"module": "components/accordionbutton/accordionbutton.component.js"
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
180
|
{
|
|
@@ -493,8 +493,8 @@
|
|
|
493
493
|
"default": "undefined",
|
|
494
494
|
"fieldName": "disabled",
|
|
495
495
|
"inheritedFrom": {
|
|
496
|
-
"name": "
|
|
497
|
-
"module": "src/
|
|
496
|
+
"name": "AccordionButton",
|
|
497
|
+
"module": "src/components/accordionbutton/accordionbutton.component.ts"
|
|
498
498
|
}
|
|
499
499
|
},
|
|
500
500
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
1
|
+
import { css, unsafeCSS } from 'lit';
|
|
2
2
|
const hostFitContentStyles = css `
|
|
3
3
|
:host {
|
|
4
4
|
align-items: center;
|
|
@@ -22,7 +22,17 @@ const baseHostStyleVariables = css `
|
|
|
22
22
|
--mdc-focus-ring-outer-offset: calc(var(--mdc-focus-ring-inner-width) + var(--mdc-focus-ring-middle-width));
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
|
+
/*
|
|
26
|
+
* Mitigates the blue fringe on the inner edge of the focus ring on transparent elements with rounded corners.
|
|
27
|
+
* Every box-shadow layer shares the same anti-aliased edge at the border box, so the blue layers bleed through
|
|
28
|
+
* the black inner layer there. Repeating the inner color with half the spread overdraws the bleed, while its
|
|
29
|
+
* outer edge stays hidden below the opaque inner layer, so the ring looks the same.
|
|
30
|
+
* See LEARNINGS.md ("Focus ring: inner blue fringe").
|
|
31
|
+
*/
|
|
32
|
+
const focusRingInnerOverdrawLayer = '0 0 0 calc(var(--mdc-focus-ring-inner-width) / 2) var(--mdc-focus-ring-inner-color)';
|
|
33
|
+
const focusRingInnerOverdraw = unsafeCSS(Array(8).fill(focusRingInnerOverdrawLayer).join(',\n '));
|
|
25
34
|
const focusRingBoxShadow = css `0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
|
|
35
|
+
${focusRingInnerOverdraw},
|
|
26
36
|
0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
|
|
27
37
|
0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
|
|
28
38
|
`;
|