Text
Overview
You’ll display structured data with components like data grid, record detail, and tree view, but most applications also display some degree of simple text. Examples might include introductory text, text in help pages, or text in an About page.
The styling for simple text is automatically set at the body tag level by the theming. You can also mark certain text as bright, which makes it display bolder and in a brighter color, or error, which is appropriate for highlighting an error condition.
Your application may define additional text styling as needed, but that styling should never change the font face or color as those are defined by the theming.
This is regular text.
This is bright text.
This is error text.
Development
Web component development
The styling for text is set at the body tag level by the theming.
You can also apply the rui-regular-text-label
, rui-bright-text-label
, and rui-error-text-label
CSS classes to elements to force them to display with regular, bright, and error text styling, respectively.
To display standalone text in a function toolbar, add the text to a span that has the rui-function-toolbar-text
themed CSS class applied.
Angular wrapper development
The styling for text is set at the body tag level by the theming.
You can also apply the jha-regular-text-label
, jha-bright-text-label
, and jha-error-text-label
CSS classes to elements to force them to display with regular, bright, and error text styling, respectively.
To display standalone text in a function toolbar, add the text to a span that has the jha-function-toolbar-text
themed CSS class applied.
Design
Figma design
Dev Component | Design Component Name |
---|---|
Regular text | Add text and apply the “rui-regular” text style and the “rui-pacific/text-regular” color style. |
'Bright' text | Add text and apply the “rui-regular” text style and the “rui-pacific/text-bright” color style. |
Error text | Add text and apply the “rui-regular” text style and the “rui-pacific/text-error” color style. |
Anchor text (i.e. links) | Add text and apply the the “rui-anchor” text style and “rui-pacific/accent” color style. |
Adobe XD design
- Sample App - Text
Dev Component | Design Component Name |
---|---|
Regular text | Add text and apply the “JHA / Text / Regular” character style. |
'Bright' text | Add text and apply the “JHA / Text / Bright” character style. |
Error text | Add text and apply the “JHA / Text / Error” character style. |
Anchor text (i.e. links) | Add text and apply the “JHA / Text / Anchor” character style. |