8000 feat(DescriptionList): apply tokens by kmcfaul · Pull Request #6129 · patternfly/patternfly · GitHub
[go: up one dir, main page]

Skip to content

feat(DescriptionList): apply tokens#6129

Merged
mcoker merged 2 commits intopatternfly:v6from
kmcfaul:descriptionlist-penta
Jan 12, 2024
Merged

feat(DescriptionList): apply tokens#6129
mcoker merged 2 commits intopatternfly:v6from
kmcfaul:descriptionlist-penta

Conversation

@kmcfaul
Copy link
Contributor
@kmcfaul kmcfaul commented Dec 11, 2023

closes #6101

with new v6 branch. Old PR: #6102

@patternfly-build
Copy link
Collaborator
patternfly-build commented Dec 11, 2023

@kmcfaul kmcfaul linked an issue Jan 2, 2024 that may be closed by this pull request
Copy link
Contributor
@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

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

Noticing a couple of things:

  • This is pre-existing so we can do a followup, but the "Help text" example should have teh pf-m-help-text class applied to the .pf-v5-c-description-list__term > .pf-v5-c-description-list__text element to apply the underlined styling
  • Figma has different font size styling for card variants than shown here. There's a "small" variant that looks to use the font sizes of a default description list, a "default" variant that has slightly larger font sizing, and a "large" variant. The __term element also has its font size updated (right now we're only updating the __description font sizing).
  • The text blends in with the card variant in dark mode, but I imagine that would be resolve when the card component gets Penta-fied.

// Display modifiers
--#{$description-list}--m-display-lg__description--FontSize: var(--#{$pf-global}--FontSize--lg);
--#{$description-list}--m-display-2xl__description--FontSize: var(--#{$pf-global}--FontSize--2xl);
--#{$description-list}--m-display-lg__description--FontSize: var(--pf-t--global--font--size--body--lg); // TODO replace with new font tokens when available
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this is setting the font size to just 16px, Figma show it shouls be 22px for the description text for large styling.

--#{$description-list}--m-display-lg__description--FontSize: var(--#{$pf-global}--FontSize--lg);
--#{$description-list}--m-display-2xl__description--FontSize: var(--#{$pf-global}--FontSize--2xl);
--#{$description-list}--m-display-lg__description--FontSize: var(--pf-t--global--font--size--body--lg); // TODO replace with new font tokens when available
--#{$description-list}--m-display-2xl__description--FontSize: var(--pf-t--global--font--size--heading--lg); // TODO replace with new font tokens when available
Copy link
Contributor

Choose a reason for hiding this comment

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

Figma only has sizing for small, default, and large for the card variant of the component. Do we still need this var and the associated modifier class?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mcoker what do you think?

Copy link
Contributor
@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

L🎄TM! Left a couple of comments we can follow up on.

// help text
--#{$description-list}__text--m-help-text--TextDecorationColor: var(--#{$pf-global}--BorderColor--200);
--#{$description-list}__text--m-help-text--TextDecorationThickness: var(--#{$pf-global}--BorderWidth--sm);
--#{$description-list}__text--m-help-text--TextDecorationColor: var(--pf-t--global--icon--color--regular);
Copy link
Contributor

Choose a reason for hiding this comment

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

This matches figma, but @lboehling says that's not accurate and we should just use whatever the text color is here. In another example, I just used currentcolor here, which will tell it to inherit whatever the text color is.

Suggested change
--#{$description-list}__text--m-help-text--TextDecorationColor: var(--pf-t--global--icon--color--regular);
--#{$description-list}__text--m-help-text--TextDecorationColor: currentcolor;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mcoker Opened #6223 to add the suggestions

--#{$description-list}__text--m-help-text--TextDecorationColor: var(--#{$pf-global}--BorderColor--200);
--#{$description-list}__text--m-help-text--TextDecorationThickness: var(--#{$pf-global}--BorderWidth--sm);
--#{$description-list}__text--m-help-text--TextDecorationColor: var(--pf-t--global--icon--color--regular);
--#{$description-list}__text--m-help-text--TextDecorationThickness: var(--pf-t--global--border--width--100);
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a note here, but we'll want to update this to use a semantic token

Copy link
@lboehling lboehling left a comment

Choose a reason for hiding this comment

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

lgtm! thank you!

@mcoker mcoker merged commit c97041a into patternfly:v6 Jan 12, 2024
@patternfly-build
Copy link
Collaborator

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

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.

Description list tokens

5 participants

0