Skip to content

Commit 9be3c05

Browse files
committed
feat(progress-steps)!: migrate pfe-progress-steps to lit
fix(progress-steps): remove erroneous count property (#1822) chore(progress-steps): update slot definitions for docs (#1823) Co-authored-by: Michael Potter <[email protected]> docs(progress-steps): added pfe-progress-steps-item slots to docs (#1825) fix(progress-steps)!: remove has_ attrs test(progress-steps): e2e tests with page object model docs(progress-steps): fix demo style(progress-steps): lint docs(progress-steps): inline docs docs(progress-steps): refactor docs page docs(progress-steps): add changeset docs(progress-steps): update inline docs
1 parent 09e331b commit 9be3c05

26 files changed

+1044
-1282
lines changed

.changeset/progress-steps.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
"@patternfly/pfe-progress-steps": major
3+
---
4+
5+
## 🔥 Migrate to Lit
6+
7+
This release migrates `<pfe-progress-steps>` to LitElement.
8+
9+
NEW: CSS Shadow Parts!
10+
11+
### Breaking Changes
12+
- Initial render is now [asynchronous](https://lit.dev/docs/components/lifecycle/#reactive-update-cycle).
13+
If your code assumes that shadow DOM is ready once the element is constructed, update it to `await element.updateComplete`
14+
15+
16+
See [docs](https://patternflyelements.org/components/progress-steps/) for more info
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
// Please see the pfe-sass README for guidance on using these tools
2-
@import "../../pfe-sass/pfe-sass";
1+
@use "@patternfly/patternfly/sass-utilities/all" as *;
2+
@use "@patternfly/pfe-sass" as *;
33

44
// Example local variable, using BEM format
55
// --pfe-progress-steps__region--Property: value;
66

7-
$LOCAL-VARIABLES: (
7+
@include configure(
8+
$variables: (
89
item: (
910
size: 75px,
1011
// Note: this is the fallback value; these are overwritten by the JS
@@ -15,5 +16,6 @@ $LOCAL-VARIABLES: (
1516
circle: (
1617
size: pfe-var(ui--element--size), // 20px
1718
size--active: pfe-var(ui--element--size--md) // 32px
18-
)
19-
);
19+
),
20+
),
21+
);
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { pfeCustomElementsManifestConfig } from '@patternfly/pfe-tools/custom-elements-manifest.js';
2+
3+
export default pfeCustomElementsManifestConfig({
4+
globs: ['pfe-*.ts'],
5+
});
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
:host {
2+
padding: 5em;
3+
}
4+
5+
pfe-progress-steps+pfe-progress-steps {
6+
margin-top: 2em;
7+
}
8+
9+
*:is(h1, h2) {
10+
margin-top: 2em;
11+
}
12+
13+
/* Center */
14+
.pfe-l-grid.pfe-m-gutters > * {
15+
margin-left: auto;
16+
margin-right: auto;
17+
}
18+
19+
/* Styles for redhat.com */
20+
.rhdotcom {
21+
--pfe-progress-steps-item__circle--color--active: #EE0000;
22+
--pfe-progress-steps-item__title--Color--active: #151515;
23+
--pfe-progress-steps__progress-bar--color--active: #6A6E73;
24+
}

0 commit comments

Comments
 (0)