Skip to content

Commit e163d52

Browse files
authored
Merge d832c2e into 62125b7
2 parents 62125b7 + d832c2e commit e163d52

24 files changed

Lines changed: 720 additions & 508 deletions

.changeset/smooth-webs-travel.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
"@patternfly/elements": major
3+
---
4+
5+
`<pf-v6-banner>`: replaces `<pf-v5-banner>` with PatternFly v6 design specs.
6+
7+
```html
8+
<pf-v6-banner status="info" accessible-label="Info banner">
9+
Info banner content
10+
</pf-v6-banner>
11+
```
12+
13+
**Breaking Changes from v5**
14+
15+
- Renamed tag from `<pf-v5-banner>` to `<pf-v6-banner>`
16+
- `variant` attribute split into separate `color` and `status` attributes
17+
- CSS custom properties renamed from `--pf-v5-c-banner--*` to `--pf-v6-c-banner--*`
18+
- Removed `icon` attribute and `icon` slot (compose icons in default slot)
19+
- Removed `container` and `icon` CSS parts
20+
21+
**New features**
22+
23+
- `color` attribute for decorative colors (red, orangered, orange, yellow, green, teal, blue, purple)
24+
- `status` attribute for semantic statuses (success, warning, danger, info, custom)
25+
- `accessible-label` attribute for visually-hidden accessible text

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ core/pfe-core/demo/*
105105

106106
# AI
107107
.claude/settings.local.json
108+
.claude/worktrees
108109

109110
# Temp files
110111
*~

elements/pf-v5-back-to-top/demo/button.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<pf-v5-banner variant="info" id="top">
2-
<pf-v5-icon icon="info-circle" slot="icon"></pf-v5-icon>
1+
<pf-v6-banner status="info" accessible-label="Accessibility warning:" id="top">
2+
<pf-v5-icon icon="info-circle"></pf-v5-icon>
33
<strong>Accessibility Warning</strong> Using the Button/JS variant, implementation must apply click event and focus to the element that is scrolled to.
4-
</pf-v5-banner>
4+
</pf-v6-banner>
55
<div class="outer-container">
66
<div class="scroll-indicator padded">
77
<h2>Button</h2>
@@ -15,7 +15,7 @@ <h2>Button</h2>
1515

1616
<script type="module">
1717
import '@patternfly/elements/pf-v5-back-to-top/pf-v5-back-to-top.js';
18-
import '@patternfly/elements/pf-v5-banner/pf-v5-banner.js';
18+
import '@patternfly/elements/pf-v6-banner/pf-v6-banner.js';
1919
document.querySelector('pf-v5-back-to-top').addEventListener('click', function() {
2020
// scroll to some element
2121
const target = document.querySelector('#top');

elements/pf-v5-banner/README.md

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

elements/pf-v5-banner/demo/index.html

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

elements/pf-v5-banner/demo/status-banners.html

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

elements/pf-v5-banner/demo/sticky.html

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

elements/pf-v5-banner/docs/pf-v5-banner.md

Lines changed: 0 additions & 59 deletions
This file was deleted.
-11.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)