@momentum-design/components 0.17.1 → 0.17.2
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
CHANGED
@@ -21,11 +21,15 @@
|
|
21
21
|
--mdc-themeprovider-font-weight: 400;
|
22
22
|
/* adjusting Inter's letter spacing to better match the old CiscoSans */
|
23
23
|
--mdc-themeprovider-letter-spacing-adjustment: -0.25px;
|
24
|
+
/* Adjusting font feature settings for accessibility reasons */
|
25
|
+
--mdc-themeprovider-font-feature-settings: "ss02" on;
|
24
26
|
|
25
27
|
color: var(--mdc-themeprovider-color-default);
|
26
28
|
font-family: var(--mdc-themeprovider-font-family);
|
27
29
|
font-weight: var(--mdc-themeprovider-font-weight);
|
28
30
|
letter-spacing: var(--mdc-themeprovider-letter-spacing-adjustment);
|
31
|
+
|
32
|
+
font-feature-settings: var(--mdc-themeprovider-font-feature-settings);
|
29
33
|
}
|
30
34
|
`,pr=[uo];var nt=class extends st{constructor(){super({context:Xt.context,initialValue:new Xt(me.THEMECLASS)});this.themeclass=me.THEMECLASS}static get Context(){return Xt.context}updated(t){super.updated(t),t.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};nt.styles=[...st.styles,...pr],a([S()],nt.prototype,"currentThemeClass",2),a([d({type:String})],nt.prototype,"themeclass",2);var Te=nt;Te.register(Gt);var go=Te;var E=m`
|
31
35
|
:host {
|