Skip to content

feat(InputGroup,TextInput): add tokens#6201

Merged
mcoker merged 2 commits into
patternfly:v6from
srambach:6191-text-number-input-tokens
Jan 11, 2024
Merged

feat(InputGroup,TextInput): add tokens#6201
mcoker merged 2 commits into
patternfly:v6from
srambach:6191-text-number-input-tokens

Conversation

@srambach

@srambach srambach commented Jan 8, 2024

Copy link
Copy Markdown
Member

Fixes #6191

Also adjusts a padding on the form element because it was too close to the status icon.
I can combine the borders into one variable if desired.

Convenience links to some things affected:
https://patternfly-pr-6201.surge.sh/components/number-input
https://patternfly-pr-6201.surge.sh/components/input-group
https://patternfly-pr-6201.surge.sh/components/text-input-group

@patternfly-build

patternfly-build commented Jan 8, 2024

Copy link
Copy Markdown
Collaborator

@srambach srambach linked an issue Jan 8, 2024 that may be closed by this pull request

@mattnolting mattnolting left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks great! One question about the pf-m-box variant.

Comment on lines +14 to 22
--#{$input-group}__item--m-box--PaddingRight: var(--pf-t--global--spacer--sm);
--#{$input-group}__item--m-box--PaddingLeft: var(--pf-t--global--spacer--sm);
--#{$input-group}__item--m-box--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
--#{$input-group}__item--m-box--BorderWidth: var(--#{$input-group}__item--BorderWidth--base);
--#{$input-group}__item--m-box--BorderRadius: var(--pf-t--global--border--radius--small);
--#{$input-group}__item--m-box--BorderTopColor: var(--#{$input-group}__item--BorderColor--base);
--#{$input-group}__item--m-box--BorderRightColor: var(--#{$input-group}__item--BorderColor--base);
--#{$input-group}__item--m-box--BorderBottomColor: var(--#{$input-group}__item--BorderColor--accent);
--#{$input-group}__item--m-box--BorderBottomColor: var(--#{$input-group}__item--BorderColor--base);
--#{$input-group}__item--m-box--BorderLeftColor: var(--#{$input-group}__item--BorderColor--base);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks like this is broken. Should we remove the variant?

Screenshot 2024-01-08 at 4 38 31 PM

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That's used to put the extra things around it, like the $ or "@example.com"
I think we still want that?

@lboehling

Copy link
Copy Markdown

LGTM!! thank you @srambach

I did notice some weird things happening in the toolbar demos, but i'm guessing that's because the examples aren't using input group? should they be?
https://patternfly-pr-6201.surge.sh/components/toolbar/html-demos/toolbar-with-validation-on-desktop/
https://patternfly-pr-6201.surge.sh/components/toolbar/html-demos#toolbar-attribute-value-single-select-filter-on-desktop

@mattnolting mattnolting self-requested a review January 11, 2024 16:37

@mattnolting mattnolting left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

WooHoo! LPTM, great work 🎉

@mcoker mcoker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎃👍

@mcoker mcoker merged commit 654d007 into patternfly:v6 Jan 11, 2024
@patternfly-build

Copy link
Copy Markdown
Collaborator

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

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 Input group, number input

5 participants