Skip to content

Commit

Permalink
Renames inline_styles example to styles.
Browse files Browse the repository at this point in the history
Refs #47.

Now that the existing `styles` example has been deleted and all styles are inline styles, there is no need for the extra qualifier here.
  • Loading branch information
dgp1130 committed May 5, 2022
1 parent cf51c99 commit ad28244
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
5 changes: 0 additions & 5 deletions examples/inline_styles/styles.css

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/inline_styles/page.ts → examples/styles/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function* (): Generator<PrerenderResource, void, void> {
<div id="shadowroot">
<template shadowroot="open">
<div id="hello">Hello, World!</div>
${inlineStyle('rules_prerender/examples/inline_styles/styles.css')}
${inlineStyle('rules_prerender/examples/styles/styles.css')}
</template>
</div>
<div id="goodbye">Goodbye, World!</div>
Expand Down
5 changes: 5 additions & 0 deletions examples/styles/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import url("rules_prerender/examples/styles/dep.css");

div {
color: var(--favorite-color);
}
2 changes: 1 addition & 1 deletion examples/inline_styles/test.ts → examples/styles/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getColor, useWebDriver } from 'rules_prerender/common/testing/webdriver

const devserverBinary = runfiles.resolvePackageRelative('devserver');

describe('inline_styles', () => {
describe('styles', () => {
const devserver = useDevserver(devserverBinary);
const wd = useWebDriver(devserver);

Expand Down

0 comments on commit ad28244

Please sign in to comment.