Skip to content

Commit

Permalink
fix prop doc for underline and italic. fix documentation for helper c…
Browse files Browse the repository at this point in the history
…lasses
  • Loading branch information
snorrekim committed Nov 20, 2024
1 parent e3e4d90 commit 808dda8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ description: 'A list of typography CSS classes'
order: 1
---

# Helpers classes and components
# Helpers classes

Details on the different sizes and weights can be found in the [Font weights](uilib/typography/font-weight/), [Font size](uilib/typography/font-size/) and [Line Height](uilib/typography/line-height/) documentation.
This is a list of all the typography helper classes available. They are used by the [Span](uilib/elements/span) and [Paragraph](uilib/elements/paragraph) components, but can also be used on their own.

## Helper classes `.dnb-t`
For visual examples, see the [Paragraph demos](uilib/elements/paragraph/#demos).

This is a list of all the typography helper classes available. They are used by the [Span](uilib/elements/span) and [Paragraph](uilib/elements/paragraph) components, but can also be used on their own. For visual examples, see the [Paragraph demos](uilib/elements/paragraph/#demos).
For details on sizes and weights, see the [Font weights](uilib/typography/font-weight/), [Font size](uilib/typography/font-size/) and [Line Height](uilib/typography/line-height/) documentation.

## CSS classes `.dnb-t`

### Font weight

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ export const TypographyProperties: PropertiesTableProps = {
},
decoration: {
doc: 'Sets the font decoration.',
type: [`'italic'`, `'underline'`],
type: `'underline'`,
status: 'optional',
},
slant: {
doc: 'Sets the font style.',
type: `'italic'`,
status: 'optional',
},
'[Space](/uilib/layout/space/properties)': {
Expand Down

0 comments on commit 808dda8

Please sign in to comment.