@momentum-design/components 0.100.2 → 0.101.1
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.
- package/dist/browser/index.js +10 -13
- package/dist/browser/index.js.map +2 -2
- package/dist/components/accordion/accordion.component.d.ts +2 -0
- package/dist/components/accordion/accordion.component.js +2 -0
- package/dist/components/accordionbutton/accordionbutton.component.d.ts +2 -0
- package/dist/components/accordionbutton/accordionbutton.component.js +2 -0
- package/dist/components/accordiongroup/accordiongroup.component.d.ts +2 -0
- package/dist/components/accordiongroup/accordiongroup.component.js +2 -0
- package/dist/components/input/input.styles.js +1 -2
- package/dist/components/popover/popover.styles.js +7 -9
- package/dist/components/tablist/tablist.styles.js +3 -3
- package/dist/custom-elements.json +374 -374
- package/dist/react/accordion/index.d.ts +2 -0
- package/dist/react/accordion/index.js +2 -0
- package/dist/react/accordionbutton/index.d.ts +2 -0
- package/dist/react/accordionbutton/index.js +2 -0
- package/dist/react/accordiongroup/index.d.ts +2 -0
- package/dist/react/accordiongroup/index.js +2 -0
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +3 -3
- package/package.json +1 -1
@@ -24,6 +24,8 @@ import AccordionButton from '../accordionbutton/accordionbutton.component';
|
|
24
24
|
*
|
25
25
|
* If you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.
|
26
26
|
*
|
27
|
+
* If an accordion is expanded by default, then the screen reader might loose focus when toggling the visibilty of the accordion.
|
28
|
+
*
|
27
29
|
* @tagname mdc-accordion
|
28
30
|
*
|
29
31
|
* @dependency mdc-button
|
@@ -38,6 +38,8 @@ import styles from './accordion.styles';
|
|
38
38
|
*
|
39
39
|
* If you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.
|
40
40
|
*
|
41
|
+
* If an accordion is expanded by default, then the screen reader might loose focus when toggling the visibilty of the accordion.
|
42
|
+
*
|
41
43
|
* @tagname mdc-accordion
|
42
44
|
*
|
43
45
|
* @dependency mdc-button
|
@@ -27,6 +27,8 @@ declare const AccordionButton_base: import("../../utils/mixins/index.types").Con
|
|
27
27
|
*
|
28
28
|
* If you do need any controls on your accordion heading, then it's advised to use `accordion` component.
|
29
29
|
*
|
30
|
+
* If an accordion button is expanded by default, then the screen reader might loose focus when toggling the visibilty of the accordion button.
|
31
|
+
*
|
30
32
|
* @tagname mdc-accordionbutton
|
31
33
|
*
|
32
34
|
* @dependency mdc-button
|
@@ -39,6 +39,8 @@ import styles from './accordionbutton.styles';
|
|
39
39
|
*
|
40
40
|
* If you do need any controls on your accordion heading, then it's advised to use `accordion` component.
|
41
41
|
*
|
42
|
+
* If an accordion button is expanded by default, then the screen reader might loose focus when toggling the visibilty of the accordion button.
|
43
|
+
*
|
42
44
|
* @tagname mdc-accordionbutton
|
43
45
|
*
|
44
46
|
* @dependency mdc-button
|
@@ -22,6 +22,8 @@ import type { Size, Variant } from './accordiongroup.types';
|
|
22
22
|
*
|
23
23
|
* If you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.
|
24
24
|
*
|
25
|
+
* If the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.
|
26
|
+
*
|
25
27
|
* @tagname mdc-accordiongroup
|
26
28
|
*
|
27
29
|
* @slot default - The default slot can contain the `accordion` or `accordionbutton` components.
|
@@ -35,6 +35,8 @@ import styles from './accordiongroup.styles';
|
|
35
35
|
*
|
36
36
|
* If you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.
|
37
37
|
*
|
38
|
+
* If the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.
|
39
|
+
*
|
38
40
|
* @tagname mdc-accordiongroup
|
39
41
|
*
|
40
42
|
* @slot default - The default slot can contain the `accordion` or `accordionbutton` components.
|
@@ -20,7 +20,6 @@ const styles = [
|
|
20
20
|
--mdc-input-success-border-color: var(--mds-color-theme-text-success-normal);
|
21
21
|
--mdc-input-primary-border-color: var(--mds-color-theme-text-accent-normal);
|
22
22
|
}
|
23
|
-
|
24
23
|
:host,
|
25
24
|
.input-container,
|
26
25
|
.input-section,
|
@@ -87,7 +86,7 @@ const styles = [
|
|
87
86
|
|
88
87
|
.prefix-text {
|
89
88
|
color: var(--mdc-input-support-text-color);
|
90
|
-
white-space: nowrap;
|
89
|
+
white-space: nowrap; /* restrict prefix text to be in one line */
|
91
90
|
}
|
92
91
|
|
93
92
|
:host(:not([disabled])) .input-container:hover {
|
@@ -36,15 +36,13 @@ const styles = css `
|
|
36
36
|
color: var(--mdc-popover-inverted-text-color);
|
37
37
|
}
|
38
38
|
|
39
|
-
:host([color='contrast']) {
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
color: var(--mdc-popover-inverted-text-color);
|
47
|
-
}
|
39
|
+
:host([color='contrast']) .popover-arrow {
|
40
|
+
background-color: var(--mdc-popover-inverted-background-color);
|
41
|
+
border-color: var(--mdc-popover-inverted-border-color);
|
42
|
+
}
|
43
|
+
|
44
|
+
:host([color='contrast']) .popover-close {
|
45
|
+
color: var(--mdc-popover-inverted-text-color);
|
48
46
|
}
|
49
47
|
|
50
48
|
:host::part(popover-content) {
|