Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(toolbar): added item width control #3994

Merged
merged 4 commits into from Apr 13, 2021

Conversation

mattnolting
Copy link
Contributor

@mattnolting mattnolting commented Apr 12, 2021

closes #3894
closes #3449
Added width control to and toolbar item.

@patternfly-build
Copy link

patternfly-build commented Apr 12, 2021

Preview: https://patternfly-pr-3994.surge.sh

A11y report: https://patternfly-pr-3994-coverage.surge.sh

CSS Size Report
NameCurrentPreviousDiff %
components/Toolbar/toolbar.css40.1 kB38.7 kB3.59
patternfly-no-reset.css1.2 MB1.2 MB0.12
patternfly.css1.2 MB1.2 MB0.12
patternfly.min.css1.0 MB1.0 MB0.13

Copy link
Member

@mcarrano mcarrano left a comment

Choose a reason for hiding this comment

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

Looks OK to me, but I'll defer to others for approval.


| Class | Applied to | Outcome |
| -- | -- | -- |
| `--pf-c-toolbar__item--Width{-on-[breakpoint]}: {width}` | `.pf-c-toolbar__item` | Modifies the width value of a `toolbar item`. |
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
| `--pf-c-toolbar__item--Width{-on-[breakpoint]}: {width}` | `.pf-c-toolbar__item` | Modifies the width value of a `toolbar item`. |
| `--pf-c-toolbar__item--Width{-on-[breakpoint]}: {width}` | `.pf-c-toolbar__item` | Modifies the width value of a toolbar item. |

@@ -133,3 +148,4 @@ When using the `.pf-c-input-group` always ensure labels are used outside the inp
| `.pf-c-input-group` | `<div>` | Initiates the input group. **Required** |
| `.pf-c-input-group__text` | `<span>` | Initiates the input group text. This can be used to show text, radio, icons, or check boxes. |
| `.pf-m-plain` | `.pf-c-input-group__text` | Removes the border from the text element. |
| `--pf-c-input-group--Width{-on-[breakpoint]}: {width}` | `.pf-c-input-group` | Modifies the width value of an `input group`. |
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
| `--pf-c-input-group--Width{-on-[breakpoint]}: {width}` | `.pf-c-input-group` | Modifies the width value of an `input group`. |
| `--pf-c-input-group--Width{-on-[breakpoint]}: {width}` | `.pf-c-input-group` | Modifies the width value of an input group. |

@@ -116,6 +116,21 @@ cssPrefix: pf-c-input-group
{{/input-group}}
```

### Width control
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 wondering if we need this for an input group, or if we could just enable it on a toolbar item? Was there a reason we need it on an input group, too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My reasoning was that the same issue would occur outside of a toolbar. But we can limit this PR to toolbar

@mattnolting mattnolting changed the title feat(toolbar-input-group): added width control feat(toolbar): added width control Apr 13, 2021
@mattnolting
Copy link
Contributor Author

@mcoker updated

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!!

@mcoker mcoker merged commit fde9b53 into patternfly:master Apr 13, 2021
@mcoker mcoker changed the title feat(toolbar): added width control feat(toolbar): added item width control Apr 13, 2021
@redallen
Copy link
Contributor

🎉 This PR is included in version 4.99.0 🎉

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search Input used in Toolbar will shift content to the right. Toolbar filters are narrower in Chrome
5 participants