Skip to content

Commit

Permalink
fix(jump-links): fix missing comma throwing off chrome css parser (#2851
Browse files Browse the repository at this point in the history
)

* fix(jump-links): fix missing comma throwing off chrome css parser

* chore(jump-links): add changeset

* chore(jump-links) update changeset

Co-authored-by: Benny Powers - עם ישראל חי! <[email protected]>

---------

Co-authored-by: Benny Powers - עם ישראל חי! <[email protected]>
  • Loading branch information
zeroedin and bennypowers authored Sep 25, 2024
1 parent 85f1854 commit 155911d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/fresh-donuts-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@patternfly/elements": major
---

`<pf-jump-links>`: corrected a layout bug which occurred when the `centered` attribute applied
33 changes: 22 additions & 11 deletions elements/pf-jump-links/pf-jump-links.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,29 @@ slot::before {
}

:host([vertical]) #container {
--pf-c-jump-links__list--PaddingTop: var(--pf-c-jump-links--m-vertical__list--PaddingTop,
var(--pf-global--spacer--md, 1rem));
--pf-c-jump-links__list--PaddingRight: var(--pf-c-jump-links--m-vertical__list--PaddingRight, 0);
--pf-c-jump-links__list--PaddingBottom: var(--pf-c-jump-links--m-vertical__list--PaddingBottom
var(--pf-global--spacer--md, 1rem));
--pf-c-jump-links__list--PaddingLeft: var(--pf-c-jump-links--m-vertical__list--PaddingLeft, 0);
--pf-c-jump-links__list--before--BorderTopWidth: var(--pf-c-jump-links--m-vertical__list--before--BorderTopWidth, 0);
--pf-c-jump-links__list--before--BorderLeftWidth: var(--pf-c-jump-links--m-vertical__list--before--BorderLeftWidth,
--pf-c-jump-links__list--PaddingTop:
var(--pf-c-jump-links--m-vertical__list--PaddingTop,
var(--pf-global--spacer--md, 1rem)
);
--pf-c-jump-links__list--PaddingRight:
var(--pf-c-jump-links--m-vertical__list--PaddingRight,0);
--pf-c-jump-links__list--PaddingBottom:
var(--pf-c-jump-links--m-vertical__list--PaddingBottom,
var(--pf-global--spacer--md, 1rem)
);
--pf-c-jump-links__list--PaddingLeft:
var(--pf-c-jump-links--m-vertical__list--PaddingLeft, 0);
--pf-c-jump-links__list--before--BorderTopWidth:
var(--pf-c-jump-links--m-vertical__list--before--BorderTopWidth, 0);
--pf-c-jump-links__list--before--BorderLeftWidth:
var(--pf-c-jump-links--m-vertical__list--before--BorderLeftWidth,
var(--pf-global--BorderWidth--sm, 1px));
--pf-c-jump-links__item--m-current__link--before--BorderTopWidth: var(--pf-c-jump-links--m-vertical__item--m-current__link--before--BorderTopWidth, 0);
--pf-c-jump-links__item--m-current__link--before--BorderLeftWidth: var(--pf-c-jump-links--m-vertical__item--m-current__link--before--BorderLeftWidth,
var(--pf-global--BorderWidth--lg, 3px));
--pf-c-jump-links__item--m-current__link--before--BorderTopWidth:
var(--pf-c-jump-links--m-vertical__item--m-current__link--before--BorderTopWidth, 0);
--pf-c-jump-links__item--m-current__link--before--BorderLeftWidth:
var(--pf-c-jump-links--m-vertical__item--m-current__link--before--BorderLeftWidth,
var(--pf-global--BorderWidth--lg, 3px)
);
--pf-c-jump-links__list--FlexDirection: var(--pf-c-jump-links--m-vertical__list--FlexDirection, column);
}

Expand Down

0 comments on commit 155911d

Please sign in to comment.