Skip to content

Commit 808bef6

Browse files
committed
chore: updated demo styles
1 parent a7159c4 commit 808bef6

9 files changed

Lines changed: 112 additions & 203 deletions

File tree

‎elements/pf-v6-button/demo/links-as-buttons.html‎

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,27 @@
11
---
22
name: Links as buttons
3-
description: Any button variant renders as an anchor when href is set, so buttons that navigate elsewhere still look and behave like the intended variant.
3+
description: Buttons that link to another resource may take the form of primary, secondary, tertiary, or link variants. Set the href attribute to designate the button's target link.
44
---
55

66
<section>
7-
<pf-v6-button href="https://www.w3.org/TR/WCAG20-TECHS/ARIA8.html#ARIA8-examples"
8-
>Primary link to W3.org</pf-v6-button
7+
<pf-v6-button href="https://www.patternfly.org/" target="_blank"
8+
>Link to PatternFly home</pf-v6-button
99
>
1010
<pf-v6-button
1111
variant="secondary"
12-
href="#overview"
13-
accessible-label="Read more about button documentation"
14-
>Secondary link to anchor</pf-v6-button
15-
>
16-
<pf-v6-button
17-
variant="secondary"
18-
danger
19-
href="#overview"
20-
accessible-label="Read more about button documentation"
21-
>Secondary danger link to anchor</pf-v6-button
12+
href="https://www.patternfly.org/"
13+
target="_blank"
14+
>Secondary link to PatternFly home</pf-v6-button
2215
>
2316
<pf-v6-button
2417
variant="tertiary"
25-
href="https://www.w3.org/TR/WCAG20-TECHS/ARIA8.html#ARIA8-examples"
26-
disabled-focusable
27-
>Tertiary link to W3.org</pf-v6-button
18+
href="https://www.patternfly.org/"
19+
target="_blank"
20+
disabled
21+
>Tertiary link to PatternFly home</pf-v6-button
2822
>
29-
<pf-v6-button
30-
variant="link"
31-
href="https://www.w3.org/TR/WCAG20-TECHS/ARIA8.html#ARIA8-examples"
32-
>Link to W3.org</pf-v6-button
33-
>
34-
<pf-v6-button
35-
variant="link"
36-
danger
37-
href="https://www.w3.org/TR/WCAG20-TECHS/ARIA8.html#ARIA8-examples"
38-
>Link danger to W3.org</pf-v6-button
23+
<pf-v6-button variant="link" href="https://www.patternfly.org/"
24+
>Jump to PatternFly home</pf-v6-button
3925
>
4026
</section>
4127

‎elements/pf-v6-button/demo/plain-with-no-padding.html‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
name: Plain with no padding
3-
description: Use no-padding with variant="plain" for when a plain/icon button is placed inline with text.
3+
description: To display a plain/icon button inline with text, use the no-padding attribute in addition to variant="plain".
44
---
55

66
<p>
7-
For when a plain/icon button is placed inline with text
7+
This is an example of a button
88
<pf-v6-button variant="plain" no-padding accessible-label="More info">
99
<svg
1010
slot="icon"
@@ -15,10 +15,11 @@
1515
aria-hidden="true"
1616
>
1717
<path
18-
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm0 28C8.832 29 3 23.168 3 16S8.832 3 16 3s13 5.832 13 13-5.832 13-13 13Zm5-17a5.008 5.008 0 0 1-4 4.899V19a1 1 0 0 1-2 0v-3a1 1 0 0 1 1-1c1.654 0 3-1.346 3-3s-1.346-3-3-3-3 1.346-3 3a1 1 0 0 1-2 0c0-2.757 2.243-5 5-5s5 2.243 5 5Zm-3.25 12a1.75 1.75 0 1 1-3.501-.001A1.75 1.75 0 0 1 17.75 24Z"
18+
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm0 26.014a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 27.014Zm1.25-9.914V19a1.25 1.25 0 0 1-2.5 0v-3c0-.69.56-1.25 1.25-1.25 1.517 0 2.75-1.233 2.75-2.75S17.517 9.25 16 9.25s-2.75 1.233-2.75 2.75a1.25 1.25 0 0 1-2.5 0c0-2.895 2.355-5.25 5.25-5.25s5.25 2.355 5.25 5.25a5.26 5.26 0 0 1-4 5.1Z"
1919
></path>
2020
</svg>
21-
</pf-v6-button>.
21+
</pf-v6-button>
22+
which is placed inline with text
2223
</p>
2324

2425
<script type="module">
Lines changed: 40 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
11
---
22
name: Progress
3-
description: Set loading="false" to reserve progress padding without a spinner, and loading (or loading="true") to show the spinner and in-progress styling.
3+
description: Progress indicators can be added to buttons to identify that an action is in progress after a click.
44
---
55

6-
<pf-v6-button loading="false">Primary loader</pf-v6-button>
7-
<pf-v6-button loading>Primary loading</pf-v6-button>
6+
<pf-v6-button id="primary-loading-button" loading
7+
>Click to stop loading</pf-v6-button
8+
>
9+
<pf-v6-button
10+
id="secondary-loading-button"
11+
variant="secondary"
12+
loading
13+
loading-label="Content being loaded"
14+
>Click to stop loading</pf-v6-button
15+
>
816
<br />
9-
<pf-v6-button variant="secondary" loading="false">Secondary loader</pf-v6-button>
10-
<pf-v6-button variant="secondary" loading>Secondary loading</pf-v6-button>
11-
<br />
12-
<pf-v6-button variant="plain" accessible-label="Upload">
13-
<svg
14-
slot="icon"
15-
fill="currentColor"
16-
height="1em"
17-
width="1em"
18-
viewBox="0 0 512 512"
19-
aria-hidden="true"
20-
>
21-
<path
22-
d="M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"
23-
></path>
24-
</svg>
25-
</pf-v6-button>
26-
<pf-v6-button variant="plain" loading loading-label="Uploading...">
17+
<pf-v6-button id="upload-button" variant="plain" accessible-label="Upload" loading-label="Uploading data">
2718
<svg
2819
slot="icon"
2920
fill="currentColor"
@@ -38,9 +29,35 @@
3829
</svg>
3930
</pf-v6-button>
4031
<br />
41-
<pf-v6-button variant="link" inline loading="false">Inline loader</pf-v6-button>
42-
<pf-v6-button variant="link" inline loading>Inline loading</pf-v6-button>
32+
<br />
33+
<pf-v6-button
34+
id="inline-loading-button"
35+
variant="link"
36+
inline
37+
loading
38+
loading-label="Content being loaded"
39+
>Pause loading logs</pf-v6-button
40+
>
4341

4442
<script type="module">
4543
import '@patternfly/elements/pf-v6-button/pf-v6-button.js';
44+
45+
function wireTextToggle(id, onText, offText) {
46+
const button = document.getElementById(id);
47+
button.addEventListener('click', () => {
48+
button.loading = !button.loading;
49+
button.textContent = button.loading ? onText : offText;
50+
});
51+
}
52+
53+
wireTextToggle('primary-loading-button', 'Click to stop loading', 'Click to start loading');
54+
wireTextToggle('secondary-loading-button', 'Click to stop loading', 'Click to start loading');
55+
wireTextToggle('inline-loading-button', 'Pause loading logs', 'Resume loading logs');
56+
57+
const uploadButton = document.getElementById('upload-button');
58+
uploadButton.loading = false;
59+
uploadButton.addEventListener('click', () => {
60+
uploadButton.loading = !uploadButton.loading;
61+
uploadButton.accessibleLabel = uploadButton.loading ? '' : 'Upload';
62+
});
4663
</script>

‎elements/pf-v6-button/demo/settings.html‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Settings
3-
description: Settings buttons use the settings attribute with variant="plain" and animate the gear icon on hover and focus.
3+
description: For a settings button with animations on hover and focus, use the settings attribute with either variant="plain" or variant="control".
44
---
55

66
<section>
@@ -9,6 +9,7 @@
99
settings
1010
accessible-label="Settings"
1111
></pf-v6-button>
12+
<pf-v6-button variant="control" settings>Settings</pf-v6-button>
1213
</section>
1314

1415
<script type="module">
Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,16 @@
11
---
22
name: Small buttons
3-
description: Every button variant can use size="sm" to fit tight spaces.
3+
description: To fit into tight spaces, primary, secondary, tertiary, danger, and warning button variations can be made smaller using the sm value for the size attribute.
44
---
55

66
<section>
77
<pf-v6-button size="sm">Primary</pf-v6-button>
88
<pf-v6-button size="sm" variant="secondary">Secondary</pf-v6-button>
9-
<pf-v6-button size="sm" variant="secondary" danger>Secondary danger</pf-v6-button>
109
<pf-v6-button size="sm" variant="tertiary">Tertiary</pf-v6-button>
1110
<pf-v6-button size="sm" variant="danger">Danger</pf-v6-button>
1211
<pf-v6-button size="sm" variant="warning">Warning</pf-v6-button>
1312
</section>
1413

15-
<section>
16-
<pf-v6-button size="sm" variant="link">Link</pf-v6-button>
17-
<pf-v6-button size="sm" variant="link" danger>Link danger</pf-v6-button>
18-
<pf-v6-button size="sm" variant="link" inline>Inline link</pf-v6-button>
19-
<pf-v6-button size="sm" variant="plain" accessible-label="Remove">
20-
<svg
21-
slot="icon"
22-
fill="currentColor"
23-
height="1em"
24-
width="1em"
25-
viewBox="0 0 20 20"
26-
aria-hidden="true"
27-
>
28-
<path
29-
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z"
30-
></path>
31-
</svg>
32-
</pf-v6-button>
33-
<pf-v6-button size="sm" variant="plain">
34-
<svg
35-
slot="icon"
36-
fill="currentColor"
37-
height="1em"
38-
width="1em"
39-
viewBox="0 0 20 20"
40-
aria-hidden="true"
41-
>
42-
<path
43-
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z"
44-
></path>
45-
</svg>
46-
Plain with text
47-
</pf-v6-button>
48-
</section>
49-
50-
<section>
51-
<pf-v6-button size="sm" variant="control">Control</pf-v6-button>
52-
<pf-v6-button size="sm" variant="control" accessible-label="Copy input">
53-
<svg
54-
slot="icon"
55-
fill="currentColor"
56-
height="1em"
57-
width="1em"
58-
viewBox="0 0 32 32"
59-
aria-hidden="true"
60-
>
61-
<path
62-
d="M28 7v22.607c0 .768-.622 1.393-1.387 1.393H10a1 1 0 1 1 0-2h16V7a1 1 0 1 1 2 0Zm-6.5 19h-16c-.827 0-1.5-.673-1.5-1.5V8a1.001 1.001 0 0 1 .294-.708l5.998-5.998A1.001 1.001 0 0 1 11 1h10.5c.827 0 1.5.673 1.5 1.5v22c0 .827-.673 1.5-1.5 1.5ZM7.414 7H10V4.414L7.414 7ZM21 3h-9v4.614C12 8.378 11.378 9 10.613 9H6v15h15V3Z"
63-
></path>
64-
</svg>
65-
</pf-v6-button>
66-
</section>
67-
6814
<script type="module">
6915
import '@patternfly/elements/pf-v6-button/pf-v6-button.js';
7016
</script>
@@ -75,6 +21,5 @@
7521
flex-wrap: wrap;
7622
gap: 0.5rem;
7723
align-items: center;
78-
margin-block-end: 1rem;
7924
}
8025
</style>

‎elements/pf-v6-button/demo/stateful.html‎

Lines changed: 41 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,54 @@
11
---
22
name: Stateful
3-
description: Stateful buttons communicate notification state with variant="stateful" and state set to read, unread, or attention. Set clicked to force the clicked/active styling.
3+
description: Stateful buttons communicate notification state with variant="stateful" and state set to read, unread (default), or attention.
44
---
55

6-
<strong>Read</strong>
7-
<br />
8-
<pf-v6-button variant="stateful" state="read">
9-
<svg slot="icon" fill="currentColor" height="1em" width="1em" viewBox="0 0 32 32" aria-hidden="true">
10-
<path d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z"></path>
11-
</svg>
12-
10<span class="pf-v6-screen-reader">items</span>
13-
</pf-v6-button>
14-
<pf-v6-button variant="stateful" state="read" clicked>
15-
<svg slot="icon" fill="currentColor" height="1em" width="1em" viewBox="0 0 32 32" aria-hidden="true">
16-
<path d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z"></path>
17-
</svg>
18-
10<span class="pf-v6-screen-reader">items</span>
19-
</pf-v6-button>
20-
21-
<br /><br />
22-
23-
<strong>Unread</strong>
24-
<br />
25-
<pf-v6-button variant="stateful" state="unread">
26-
<svg slot="icon" fill="currentColor" height="1em" width="1em" viewBox="0 0 32 32" aria-hidden="true">
27-
<path d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z"></path>
28-
</svg>
29-
10<span class="pf-v6-screen-reader">unread items</span>
30-
</pf-v6-button>
31-
<pf-v6-button variant="stateful" state="unread" clicked>
32-
<svg slot="icon" fill="currentColor" height="1em" width="1em" viewBox="0 0 32 32" aria-hidden="true">
33-
<path d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z"></path>
34-
</svg>
35-
10<span class="pf-v6-screen-reader">unread items</span>
36-
</pf-v6-button>
37-
38-
<br /><br />
39-
40-
<strong>Attention</strong>
41-
<br />
42-
<pf-v6-button variant="stateful" state="attention">
43-
<svg slot="icon" fill="currentColor" height="1em" width="1em" viewBox="0 0 32 32" aria-hidden="true">
44-
<path d="M28 21c-1.103 0-2-.897-2-2v-4c0-4.884-3.523-8.955-8.159-9.823.405-.444.659-1.03.659-1.677C18.5 2.121 17.379 1 16 1s-2.5 1.121-2.5 2.5c0 .648.254 1.233.659 1.677C9.523 6.045 6 10.116 6 15v4c0 1.103-.897 2-2 2a1 1 0 0 0-1 1v3.5c0 .827.673 1.5 1.5 1.5H12c0 2.206 1.794 4 4 4s4-1.794 4-4h7.5c.827 0 1.5-.673 1.5-1.5V22a1 1 0 0 0-1-1ZM14.5 11a1.5 1.5 0 0 1 3 0v5a1.5 1.5 0 0 1-3 0v-5ZM16 24.014a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 24.014Z"></path>
45-
</svg>
46-
10<span class="pf-v6-screen-reader">unread items, needs attention</span>
47-
</pf-v6-button>
48-
<pf-v6-button variant="stateful" state="attention" clicked>
49-
<svg slot="icon" fill="currentColor" height="1em" width="1em" viewBox="0 0 32 32" aria-hidden="true">
50-
<path d="M28 21c-1.103 0-2-.897-2-2v-4c0-4.884-3.523-8.955-8.159-9.823.405-.444.659-1.03.659-1.677C18.5 2.121 17.379 1 16 1s-2.5 1.121-2.5 2.5c0 .648.254 1.233.659 1.677C9.523 6.045 6 10.116 6 15v4c0 1.103-.897 2-2 2a1 1 0 0 0-1 1v3.5c0 .827.673 1.5 1.5 1.5H12c0 2.206 1.794 4 4 4s4-1.794 4-4h7.5c.827 0 1.5-.673 1.5-1.5V22a1 1 0 0 0-1-1ZM14.5 11a1.5 1.5 0 0 1 3 0v5a1.5 1.5 0 0 1-3 0v-5ZM16 24.014a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 24.014Z"></path>
51-
</svg>
52-
10<span class="pf-v6-screen-reader">unread items, needs attention</span>
53-
</pf-v6-button>
6+
<div class="stateful-demo">
7+
<div>
8+
<div><strong>Read</strong></div>
9+
<pf-v6-button variant="stateful" state="read">
10+
<svg slot="icon" fill="currentColor" height="1em" width="1em" viewBox="0 0 32 32" aria-hidden="true">
11+
<path d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z"></path>
12+
</svg>
13+
10<span class="pf-v6-screen-reader">items</span>
14+
</pf-v6-button>
15+
</div>
16+
<div>
17+
<div><strong>Unread</strong></div>
18+
<pf-v6-button variant="stateful" state="unread">
19+
<svg slot="icon" fill="currentColor" height="1em" width="1em" viewBox="0 0 32 32" aria-hidden="true">
20+
<path d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z"></path>
21+
</svg>
22+
10<span class="pf-v6-screen-reader">unread items</span>
23+
</pf-v6-button>
24+
</div>
25+
<div>
26+
<div><strong>Attention</strong></div>
27+
<pf-v6-button variant="stateful" state="attention">
28+
<svg slot="icon" fill="currentColor" height="1em" width="1em" viewBox="0 0 32 32" aria-hidden="true">
29+
<path d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z"></path>
30+
</svg>
31+
10<span class="pf-v6-screen-reader">unread items, needs attention</span>
32+
</pf-v6-button>
33+
</div>
34+
</div>
5435

5536
<script type="module">
5637
import '@patternfly/elements/pf-v6-button/pf-v6-button.js';
5738
</script>
5839

5940
<style>
41+
.stateful-demo {
42+
display: flex;
43+
gap: 1rem;
44+
align-items: flex-start;
45+
}
46+
47+
.stateful-demo strong {
48+
font-family: var(--pf-t--global--font--family--body, "Red Hat Text", RedHatText, Helvetica, Arial, sans-serif);
49+
font-size: 0.875rem;
50+
}
51+
6052
.pf-v6-screen-reader {
6153
position: absolute;
6254
width: 1px;

‎elements/pf-v6-button/demo/types.html‎

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)