8000 fix(toolbar): update for beta by mattnolting · Pull Request #6838 · patternfly/patternfly · GitHub
[go: up one dir, main page]

Skip to content

fix(toolbar): update for beta#6838

Merged
mcoker merged 8 commits intopatternfly:v6from
mattnolting:fix-toolbar-followup
Jul 10, 2024
Merged

fix(toolbar): update for beta#6838
mcoker merged 8 commits intopatternfly:v6from
mattnolting:fix-toolbar-followup

Conversation

@mattnolting
Copy link
Collaborator
@mattnolting mattnolting commented Jun 28, 2024

closes #6827

This PR

Adds:

  • .pf-m-action-group
  • .pf-m-action-group-plain
  • .pf-m-action-group-inline

Updates:

  • All variables to current semantic tokens
  • Inline button positioning in expandable content
  • Removes paddingBlock, paddingInlineBlock fallbacks
  • Adds dedicated paddingBlockStart/End, paddingInlineStart/End variables
  • Tokens to their current, semantic counterparts

Removes:

  • Page inset example and support

@patternfly-build
Copy link
Collaborator
patternfly-build commented Jun 28, 2024

align-items: baseline;

// - Toolbar icon button group - Toolbar filter group
&.pf-m-icon-button-group {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This modifier was updated to pf-m-action-group-plain

Comment on lines -153 to -167
.#{$toolbar}__content,
.#{$toolbar}__content-section,
.#{$toolbar}__expandable-content {
row-gap: var(--#{$toolbar}__content--RowGap);
column-gap: var(--#{$toolbar}--ColumnGap);
}

// - Toolbar content - Toolbar expandable content
.#{$toolbar}__content,
.#{$toolbar}__expandable-content {
padding-block-start: var(--#{$toolbar}__content--PaddingBlockStart, var(--#{$toolbar}__content--PaddingBlock));
padding-block-end: var(--#{$toolbar}__content--PaddingBlockEnd, var(--#{$toolbar}__content--PaddingBlock));
padding-inline-start: var(--#{$toolbar}__content--PaddingInlineStart, var(--#{$toolbar}__content--PaddingInline));
padding-inline-end: var(--#{$toolbar}__content--PaddingInlineEnd, var(--#{$toolbar}__content--PaddingInline));
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These row/column-gap, padding settings were separated and given their own variables.

@mattnolting mattnolting force-pushed the fix-toolbar-followup branch 2 times, most recently from 0659ddf to dc262b4 Compare June 28, 2024 15:33
@mattnolting mattnolting force-pushed the fix-toolbar-followup branch from 6455ad1 to fb714be Compare June 28, 2024 19:21
@mattnolting mattnolting marked this pull request as draft June 28, 2024 19:21
@mattnolting mattnolting force-pushed the fix-toolbar-followup branch from fb714be to 12343ca Compare June 30, 2024 16:17
@nicolethoen nicolethoen linked an issue Jul 1, 2024 that may be closed by this pull request
@mattnolting mattnolting force-pushed the fix-toolbar-followup branch 4 times, most recently from a384179 to 378e57e Compare July 2, 2024 13:40
@mattnolting mattnolting marked this pull request as ready for review July 2, 2024 13:43
@mattnolting mattnolting force-pushed the fix-toolbar-followup branch from 378e57e to eabaade Compare July 2, 2024 13:47
@mcoker mcoker changed the title Fix toolbar followup fix(toolbar): update for beta Jul 2, 2024
@nicolethoen nicolethoen linked an issue Jul 3, 2024 that may be closed by this pull request
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.

Just a couple of comments, otherwise lgtm!


// - Toolbar action group
&.pf-m-action-group {
column-gap: var(--#{$toolbar}__group--m-action-group--ColumnGap);
Copy link
@kaylachumley kaylachumley Jul 3, 2024

Choose a reason for hiding this comment

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

the global gap spacer on the action group needs to be updated to: global/spacer/gap/action-to-action: 16px/spacer-300
👍


// - Toolbar filter group
&.pf-m-filter-group {
column-gap: var(--#{$toolbar}__group--m-filter-group--ColumnGap);

Choose a reason for hiding this comment

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

This might be a little nit and I think this would actually be another core issue for the filter group component directly but, the semantic gap spacer will need updated to match this screenshot. visually it looks right, just needs the updated semantic naming i believe
Screenshot 2024-07-03 at 4 29 07 PM

@mattnolting mattnolting force-pushed the fix-toolbar-followup branch from 81d7263 to 0d3997a Compare July 3, 2024 20:37
@kaylachumley kaylachumley self-requested a review July 3, 2024 20:44
Copy link
@kaylachumley kaylachumley left a comment

Choose a reason for hiding this comment

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

added some small comments on semantic spacers but everything looks pretty good!


// - Toolbar action group inline
&.pf-m-action-group-inline {
column-gap: var(--#{$toolbar}__group--m-action-group-inline--ColumnGap);

Choose a reason for hiding this comment

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

not sure if this would be considered a action to action or a gap group horizontal? @lboehling need some assistance here!
Screenshot 2024-07-03 at 4 39 46 PM
Screenshot 2024-07-03 at 4 40 04 PM

@mattnolting mattnolting force-pushed the fix-toolbar-followup branch from a948626 to 1f7b8a4 Compare July 9, 2024 18:22
@mattnolting mattnolting requested a review from mcoker July 10, 2024 12:43
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.

LGTM, left a couple of comments, but neither are blockers for this PR IMO and can be followed up on for the final release if we need to.

align-items: start;

// push pagination to inline-end when flex items are not wrapped
&:has(.pf-m-pagination:last-child) {
Copy link
Contributor

Choose a reason for hiding this comment

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

targeting .pf-m-pagination as a child anywhere will run the risk of targeting some other component if we or users add a .pf-m-pagination modifier - can we add whatever toolbar classes .pf-m-pagination will go on to this selector?

Comment on lines +127 to +132
> .#{$toolbar}__group,
> .#{$toolbar}__item {
&:nth-last-child(2) {
flex: 1;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This :nth-last-child(2) pseudo seems like it could be fragile? Can you point to an example that shows what this is targeting?

@mcoker mcoker merged commit 8a7d5c6 into patternfly:v6 Jul 10, 2024
@mcoker mcoker mentioned this pull request Jul 10, 2024
6 tasks
@patternfly-build
Copy link
Collaborator

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

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.

Toolbar component review Toolbar - chip/label group element review

5 participants

0