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: packages/react-core/src/components/Banner/examples/Banner.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,15 +15,17 @@ import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
15
15
16
16
### Basic
17
17
18
-
Banners can be styled with one of 5 different colors. A basic banner should only be used when the banner color does not represent status or severity.
18
+
Banners can be styled with one of 9 different colors using the `color` prop. A basic banner should only be used when the banner color does not represent status or severity.
19
19
20
20
```ts file="./BannerBasic.tsx"
21
21
22
22
```
23
23
24
24
### Status
25
25
26
-
When a banner is used to convey status, it is advised to pass in an icon inside the banner to convey the status in a way besides just color. The `screenReaderText` prop should also be passed in to convey the status/severity of the banner to users of certain assistive technologies such as screen readers.
26
+
When a banner is used to convey status it should be styled using the `status` prop. Additionally, it is advised to pass an icon inside the banner to convey the status in a way besides just color.
27
+
28
+
The `screenReaderText` prop should also be passed in to convey the status/severity of the banner to users of certain assistive technologies such as screen readers.
27
29
28
30
In the following example, a flex layout is used inside the banner content to show one possible way to create spacing between the icons and banner text.
0 commit comments