Skip to content

Commit 7ebcbe0

Browse files
committed
rename uui-root to uui-font
1 parent 8f3ccee commit 7ebcbe0

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.storybook/preview-body.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<script>
2-
document.body.classList.add('uui-root');
2+
document.body.classList.add('uui-font');
33
document.body.classList.add('uui-text');
44
</script>

packages/uui-css/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
UUI-CSS package contains css files which can be included in your project or components if needed
66

77
- **custom-properties.css** — use this if you like to include our custom properties in your project.
8-
- **uui-font.css** — use this if you like to import our font in your project. You must set the `uui-root` class on your root element.
8+
- **uui-font.css** — use this if you like to import our font in your project. You must set the `uui-font` class on your root element.
99
- **uui-text.css** — use this if you like to declare styles for typography, this is needed when using ex.: H1 in a Shadow DOM. You must set the `uui-text` class in your root element.
1010

1111
Bundle:

packages/uui-css/lib/guidelines.story.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const Typography = () => html`
9292
<h2>Setup</h2>
9393
<p>
9494
The Umbraco Typography can be used on a full web application or on a
95-
dedicated spot. To set the font use the <b>uui-root</b> class on the root
95+
dedicated spot. To set the font use the <b>uui-font</b> class on the root
9696
element or a element of interest. Additionally the <b>uui-text</b> class
9797
must be set to expose the Umbraco Typography Styles. See the UUI-CSS
9898
package for more.

packages/uui-css/lib/uui-css.story.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ export const Overview: Story = () => html` <article style="max-width:580px;">
3434
properties in your project.
3535
</li>
3636
<li>
37-
<b>uui-font.css</b> — use the .uui-root class if you like to declare the
37+
<b>uui-font.css</b> — use the .uui-font class if you like to declare the
3838
Umbraco typography, this is needed for getting the Umbraco typography.
3939
</li>
4040
<li>
4141
<b>uui-text.css</b> — use the .uui-text class if you like to declare
42-
styles for typography, must be used together with .uui-root. This is
42+
styles for typography, must be used together with .uui-font. This is
4343
needed for having proper styling for H1, H2, P etc.
4444
</li>
4545
<li>

packages/uui-css/lib/uui-font.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@import './typography/lato.css';
22

3-
.uui-root {
3+
.uui-font {
44
font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
55
font-size: 15px;
66
line-height: calc(var(--uui-size-2) * 4);

0 commit comments

Comments
 (0)