Skip to content

Commit

Permalink
fix(typography): rename md-typescale.js to md-typescale-styles.js
Browse files Browse the repository at this point in the history
Fixes #5524

This fixes the new md-typescale file not being published. Our build assumes CSS-to-JS files end in "-styles".

This isn't a breaking change since the typescale classes haven't been published yet.

PiperOrigin-RevId: 617613456
  • Loading branch information
asyncLiz authored and copybara-github committed Mar 20, 2024
1 parent 80b14d7 commit 1e47fd7
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion divider/demo/stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import '@material/web/divider/divider.js';

import {MaterialStoryInit} from './material-collection.js';
import {styles as typescaleStyles} from '@material/web/typography/md-typescale.js';
import {styles as typescaleStyles} from '@material/web/typography/md-typescale-styles.js';
import {css, html} from 'lit';

/** Knob types for divider stories. */
Expand Down
2 changes: 1 addition & 1 deletion docs/theming/typography.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ stylesheet.
Class names follow the naming convention `.md-typescale-<scale>-<size>`.

```ts
import {styles as typescaleStyles} from '@material/web/typography/md-typescale.js';
import {styles as typescaleStyles} from '@material/web/typography/md-typescale-styles.js';

// `typescaleStyles.styleSheet` is a `CSSStyleSheet` that can be added to a
// document or shadow root's `adoptedStyleSheets` to use the `.md-typescale-*`
Expand Down
2 changes: 1 addition & 1 deletion iconbutton/demo/stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import '@material/web/iconbutton/icon-button.js';
import '@material/web/iconbutton/outlined-icon-button.js';

import {MaterialStoryInit} from './material-collection.js';
import {styles as typescaleStyles} from '@material/web/typography/md-typescale.js';
import {styles as typescaleStyles} from '@material/web/typography/md-typescale-styles.js';
import {css, html} from 'lit';

/** Knob types for icon button stories. */
Expand Down
2 changes: 1 addition & 1 deletion labs/card/demo/stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import '@material/web/labs/card/filled-card.js';
import '@material/web/labs/card/outlined-card.js';

import {MaterialStoryInit} from './material-collection.js';
import {styles as typescaleStyles} from '@material/web/typography/md-typescale.js';
import {styles as typescaleStyles} from '@material/web/typography/md-typescale-styles.js';
import {css, html} from 'lit';

/** Knob types for card stories. */
Expand Down
2 changes: 1 addition & 1 deletion tabs/demo/stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {MaterialStoryInit} from './material-collection.js';
import {MdTabs} from '@material/web/tabs/tabs.js';
import {css, html, nothing} from 'lit';
import {ref} from 'lit/directives/ref.js';
import {styles as typescaleStyles} from '../../typography/md-typescale.js';
import {styles as typescaleStyles} from '../../typography/md-typescale-styles.js';

/** Knob types for Tabs stories. */
export interface StoryKnobs {
Expand Down
File renamed without changes.

0 comments on commit 1e47fd7

Please sign in to comment.