8000 fix(global): use tokens for links/help-text/editable-text by mcoker · Pull Request #6908 · patternfly/patternfly · GitHub
[go: up one dir, main page]

Skip to content

fix(global): use tokens for links/help-text/editable-text#6908

Merged
srambach merged 1 commit intopatternfly:v6from
mcoker:issue-6869
Jul 19, 2024
Merged

fix(global): use tokens for links/help-text/editable-text#6908
srambach merged 1 commit intopatternfly:v6from
mcoker:issue-6869

Conversation

@mcoker
Copy link
Contributor
@mcoker mcoker commented Jul 19, 2024

fixes #6869
fixes #6900

For testing, I verified the styles are showing up as intended, then pasted this into the dev tools console to make sure I was using the right tokens and the hover/focus styles were working as expected, since the hover/focus styles match the default styles, it's hard to validate that part was working.

document.documentElement.style.setProperty("--pf-t--global--text-decoration--editable-text--line--default", "underline green");
document.documentElement.style.setProperty("--pf-t--global--text-decoration--editable-text--style--default", "dotted");
document.documentElement.style.setProperty("--pf-t--global--text-decoration--editable-text--line--hover", "overline green");
document.documentElement.style.setProperty("--pf-t--global--text-decoration--editable-text--style--hover", "wavy");

document.documentElement.style.setProperty("--pf-t--global--text-decoration--help-text--line--default", "underline red");
document.documentElement.style.setProperty("--pf-t--global--text-decoration--help-text--style--default", "dotted");
document.documentElement.style.setProperty("--pf-t--global--text-decoration--help-text--line--hover", "overline red");
document.documentElement.style.setProperty("--pf-t--global--text-decoration--help-text--style--hover", "wavy");

document.documentElement.style.setProperty("--pf-t--global--text-decoration--link--line--default", "underline blue");
document.documentElement.style.setProperty("--pf-t--global--text-decoration--link--style--default", "dotted");
document.documentElement.style.setProperty("--pf-t--global--text-decoration--link--line--hover", "overline blue");
document.documentElement.style.setProperty("--pf-t--global--text-decoration--link--style--hover", "wavy");

@mcoker mcoker requested review from srambach and thatblindgeye July 19, 2024 01:28
@patternfly-build
Copy link
Collaborator
patternfly-build commented Jul 19, 2024

@srambach
Copy link
Member

Do we need to apply these to the banner?
--#{$banner}--link--TextDecoration: underline;

Copy link
Member
@srambach srambach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be ok to apply the text decoration token to the default banner link style, but given the follow up issue #6907 I'm ok with this as is ✅

@srambach srambach merged commit 5ff4e4a into patternfly:v6 Jul 19, 2024
@patternfly-build
Copy link
Collaborator

🎉 This PR is included in version 6.0.0-alpha.201 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0