-
Notifications
You must be signed in to change notification settings - Fork 64
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
670 - Toolbar children: set horizontal and vertical layout #699
Conversation
src/toolbar/index.ts
Outdated
@@ -81,6 +81,10 @@ export class Toolbar extends I18nMixin(ThemedMixin(WidgetBase))<ToolbarPropertie | |||
classes, | |||
heading | |||
} = this.properties; | |||
const actions = v('div', { | |||
classes: this.theme(this._collapsed ? css.slidePaneActions : css.actions), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that we can always use css.actions
here. We can differentiate between slide pane / toolbar placement via the collapsed
class. This makes the dom / classes more predictable for the end user.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this is definitely a better solution! Updated
Codecov Report
@@ Coverage Diff @@
## master #699 +/- ##
==========================================
- Coverage 99.04% 99.04% -0.01%
==========================================
Files 45 45
Lines 3342 3334 -8
Branches 926 925 -1
==========================================
- Hits 3310 3302 -8
Misses 32 32
Continue to review full report at Codecov.
|
6656075
to
5273813
Compare
src/theme/toolbar.m.css
Outdated
} | ||
|
||
.collapsed { | ||
& .actions { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry to be a pain, but we're avoiding the use of nested selectors via the &
operator. Could you change this to .collapsed .actions
please then we can get this merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in bf161c0
Thanks @msssk |
Type: feature
The following has been addressed in the PR:
Description:
Toolbar: add CSS classes and rules to lay out children using
flex-direction: row
for the toolbar andflex-direction: column
for the slide pane.Resolves #670