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: migration.md
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,6 @@ The guide should be applicable when migrating from frontend-components **version
10
10
11
11
**SOLUTION:** use the `className` property if you need a custom color
12
12
13
-
14
-
## Battery
15
-
16
-
- No action required
17
-
18
-
19
13
## ErrorState
20
14
21
15
- The default error description *“If the problem persists, contact [Red Hat Support](https://access.redhat.com/support) or check our [status page](https://status.redhat.com) for known outages.”* has been removed.
@@ -55,7 +49,10 @@ The guide should be applicable when migrating from frontend-components **version
55
49
56
50
**SOLUTION:** handle `/beta` in your URL on your own and pass a final URL using the new `toLandingPageUrl` property
import Severity, { SeverityType } from '@patternfly/react-component-groups/dist/dynamic/Severity';
18
18
19
-
The **battery** component generates a battery, which corresponds to a level `low`, `medium`, `high` or `critical`. Each level corresponds with a severity level and respective color:
19
+
The **severity** component generates an icon with an optional label, which corresponds to a level `minor`, `moderate`, `important` or `critical`. Each level corresponds with a severity level and respective color:
20
20
21
21
| Severity level | Meaning | Style |
22
22
| --- | --- | --- |
23
-
| Level 1 |Low severity (best case scenario) |1 green bar | "1", "low"|
24
-
| Level 2 |Medium severity |2 yellow bars|
25
-
| Level 3 |High severity |3 orange bars|
26
-
| Level 4 | Critical severity (worst case scenario) |4 red bars|
To specify the severity of the battery's risk level, you can pass a predefined enum or text value into the `severity` property that corresponds to the appropriate severity level.
28
+
To specify the severity risk level, you can pass a predefined enum or text value into the `severity` property that corresponds to the appropriate severity level.
29
29
30
-
To add an optional label to a battery, add the `label` property to the `<Severity>` component.
30
+
To add an optional label, add the `label` property to the `<Severity>` component.
0 commit comments