Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@srambach
Copy link
Member

@srambach srambach commented Dec 12, 2023

Note:
Input groups and number input aren't included here

This recreates PR #6071 for the new v6 branch

Fixes #6156

@patternfly-build
Copy link
Collaborator

patternfly-build commented Dec 12, 2023

@srambach srambach requested review from a team, mattnolting and thatblindgeye and removed request for a team December 12, 2023 16:56
@srambach srambach changed the title 5706 new new form controls tokens feature(form): apply tokens for form, form control, radio, check Dec 12, 2023
@srambach srambach changed the title feature(form): apply tokens for form, form control, radio, check feat(form): apply tokens for form, form control, radio, check Dec 12, 2023
Comment on lines +96 to +98
--#{$form}__group-label-help--hover--Color: var(--pf-t--global--icon--color--regular);
--#{$form}__group-label-help--focus--Color: var(--pf-t--global--icon--color--brand--hover);
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these meant to be different? I see there's a comment about the help icon on the Figma, so wanted to check on these vars.

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.

Looks good. The only other thing is that the disabled FormControls are failing color contrast according to Firefox:

image

We could open a followup to resolve that if needed, unless it'd just involve updating something in Figma. cc @lboehling

@srambach
Copy link
Member Author

I was using the icon color on-disabled instead of the text one - but they are the same, this was just a mistake, so it doesn't changed the contrast issue. I think we could move forward and tweak the token later.

@srambach srambach linked an issue Dec 18, 2023 that may be closed by this pull request
Comment on lines 319 to 320
display: grid;
gap: var(--#{$form}__group-control--Gap);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if we want to make this a grid layout by default? Currently you can place stuff in it and it will have a normal layout that you can modify. This will make any children grid items and be the same effectively as the .pf-m-stack modifier.

}

.#{$form}__group-label-info {
margin-inline-start: var(--#{$form}__group-label-info--MarginLeft);
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean to remove this? You still have the var, and without this declaration the text and info text touch

Screenshot 2023-12-21 at 1 39 37 PM

@srambach srambach force-pushed the 5706-new-new-form-controls-tokens branch from 6dcb8dc to 5dc2e38 Compare December 21, 2023 20:34
@mcoker mcoker merged commit 3b6ed75 into patternfly:v6 Dec 21, 2023
@patternfly-build
Copy link
Collaborator

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

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.

Tokens for Form controls, checkbox, radio

4 participants