We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ToolbarItem
Now when the gap property in flex layouts is widely supported by browsers, we can get rid of ToolbarItem in most cases.
gap
It needs to be thoroughly tested though.
Before:
<Toolbar> <ToolbarItem>…</ToolbarItem> <ToolbarItem>…</ToolbarItem> </Toolbar>
After:
<Toolbar> … … </Toolbar>
Groups are still necessary to, well, group items together.
<Toolbar> <ToolbarGroup> <ToolbarItem>…</ToolbarItem> <ToolbarItem>…</ToolbarItem> </ToolbarGroup> </Toolbar>
<Toolbar> <ToolbarGroup> … … </ToolbarGroup> </Toolbar>
We may still need ToolbarItem for flexible items:
But! As @mbohal pointed out, Grid may be more suitable for this kind of layout. ToolbarItem then could be removed entirely.
Grid
<Toolbar> <ToolbarItem flexible>…</ToolbarItem> <ToolbarItem>…</ToolbarItem> </Toolbar>
<Grid columns="1fr auto"> … … </Grid>
The text was updated successfully, but these errors were encountered:
Toolbar
No branches or pull requests
Now when the
gap
property in flex layouts is widely supported by browsers, we can get rid ofToolbarItem
in most cases.It needs to be thoroughly tested though.
Basic Usage
Before:
After:
Groups
Groups are still necessary to, well, group items together.
Before:
After:
Flexible Items
We may still need
ToolbarItem
for flexible items:But! As @mbohal pointed out,
Grid
may be more suitable for this kind of layout.ToolbarItem
then could be removed entirely.Before:
After:
The text was updated successfully, but these errors were encountered: