@momentum-design/components 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,6 +41,7 @@ class ThemeProvider extends models_1.Provider {
41
41
  * Default: 'mds-theme-stable-darkWebex'
42
42
  */
43
43
  this.themeclass = themeprovider_constants_1.DEFAULTS.THEMECLASS;
44
+ this.classList.add(themeprovider_constants_1.DEFAULTS.TYPOGRAPHYCLASS);
44
45
  }
45
46
  /**
46
47
  * Context object of the ThemeProvider, to be consumed by child components
@@ -1,5 +1,6 @@
1
1
  declare const TAG_NAME: "mdc-themeprovider";
2
2
  declare const DEFAULTS: {
3
3
  THEMECLASS: "mds-theme-stable-darkWebex";
4
+ TYPOGRAPHYCLASS: "mds-typography";
4
5
  };
5
6
  export { DEFAULTS, TAG_NAME };
@@ -8,5 +8,6 @@ const TAG_NAME = tag_name_1.default.constructTagName('themeprovider');
8
8
  exports.TAG_NAME = TAG_NAME;
9
9
  const DEFAULTS = {
10
10
  THEMECLASS: 'mds-theme-stable-darkWebex',
11
+ TYPOGRAPHYCLASS: 'mds-typography',
11
12
  };
12
13
  exports.DEFAULTS = DEFAULTS;
@@ -4,7 +4,7 @@ const lit_1 = require("lit");
4
4
  // todo: use type tokens once the full set with fallbacks is available
5
5
  const styles = (0, lit_1.css) `
6
6
  :host {
7
- --mdc-themeprovider-font-family: "Momentum";
7
+ --mdc-themeprovider-font-family: var(--mds-font-family-primary);
8
8
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
9
9
 
10
10
  font-family: var(--mdc-themeprovider-font-family);
package/package.json CHANGED
@@ -37,5 +37,5 @@
37
37
  "@momentum-design/icons": "*",
38
38
  "@momentum-design/tokens": "*"
39
39
  },
40
- "version": "0.1.3"
40
+ "version": "0.1.5"
41
41
  }