You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/content/components/Hero/index.mdx
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ export default ComponentLayout
17
17
18
18
## Usage
19
19
20
-
Use the hero component to provide a title, description and action that introduces the main content of a page. The hero component is designed to be positioned at the top of a page and spans the full width of the viewport. Consider using the [CTA banner](/components/CTABanner) to replicate the content and actions in other parts of the page.
20
+
Use the hero component to provide a title, description and action that introduces the main content of a page. The hero component is designed to be positioned at the top of a page and spans the full width of the viewport. Consider using the [CTA banner](/components/CTABanner) to replicate the content and actions in other parts of the page.
21
21
22
22
Both heading and description of the hero should be short and descriptive. Heading should be not be longer than 2 lines, and description should be no longer than 3-4 lines.
23
23
@@ -60,11 +60,16 @@ Hero elements can be aligned to the start or center of the page. By default, the
Don't use center alignment if the background interfere with the legibility of the content.
63
+
Don't use center alignment if the background interfere with the legibility
64
+
of the content.
64
65
</Caption>
65
66
</Dont>
66
67
</DoDontContainer>
67
68
69
+
## Accessibility
70
+
71
+
Centering text may negatively impact legibility making text difficult to read. While we support this variant if possible use the left-aligned design to improve readability for more users.
72
+
68
73
## Related components
69
74
70
75
-[Section intro](/components/SectionIntro): To provide a title, description and a link to a new section in the page.
0 commit comments