Update dependency @material/web to v1.0.0 #18070
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
=1.0.0-pre.17
->=1.0.0
Release Notes
material-components/material-web (@material/web)
v1.0.0
Compare Source
⚠ BREAKING CHANGES
<md-list-item>
now uses slots instead of properties and has removed many prescriptive items (such as avatar, image, and video items). The default slot can be used for any custom content.html <md-list-item> <div slot="overline">OVERLINE</div> <div slot="headline">First line</div> <div slot="supporting-text">Second+ lines</div> <div slot="trailing-supporting-text">Trailing</div> <md-icon slot="start">star</md-icon> <md-icon slot="end">star</md-icon> </md-list-item>
Addtype="button"
ortype="link"
for interactive list items.fixed
property topositioning="fixed"
in Menu andmenuFixed
tomenuPositioning="fixed"
start-*
andend-*
slots are now juststart
andend
, many tokens are now gone in favor of slotting.headline
property is now aslot="headline"
slot. Typeahead search text can now be set viatypeaheadText
which defaults to the slotted headlinetextContent
.select-option
now has thedisplayText
which is used to display text in themd-select
when the option is selected; defaults to the slotted headlinetextContent
.md-sub-menu-item
. Instead it is recommended to usemd-sub-menu
which can havemd-menu-item[slot=item]
andmd-menu[slot=menu]
slotted into it. This makessub-menu-item
accessible for screen readers using linear navigationlist-tabindex
andtype
should now be on the host of md-menu. The new attributes should betabindex
androle
respectively.container-size
tokens withcontainer-width
andcontainer-height
.noninteractive
property has been replaced by theinteractive
property, and by default, a list-item will no longer show a ripple or focus ring. What to change:interactive
attribute explicitly.noninteractive
attribute or property can be removed as it's the new default behavior.type
attribute from<md-chip-set>
(you can mix and match chip types!)single-select
from<md-chip-set>
. Use JS to control filter chips if single selection is required. Radio filter chips will come in a future update.always-focusable
is set."selected"
event. Listen to"click"
and useevent.target.selected
instead.md-icon[slot=end][data-variant=icon]
should now bemd-icon[slot=end-icon]
.active
from list-item, menu-item, and select-option. Instead, List uses tabindex to track whether something is focusable.option.selected
no longer reflects. Set the attribute instead if relying on the attribute for styles/queries.<h3>
or<p>
), remove the top/bottom margin as needed (since margin swapped to padding, there's no more margin collapsing).selected
index property on md-tabs toactiveTabIndex
(active-tab-index
attribute). Renameselect-on-focus
toauto-activate
-type
tokens are no longer supported. Use discrete-font
,-size
,-line-height
, and-weight
tokens instead.label-text-type
tokens with-font
,-size
,-line-height
, and-weight
selected
toactive
for primary and secondary tabs.leadingicon
andtrailingicon
withleading-icon
andtrailing-icon
leadingicon
andtrailingicon
slot names withleading-icon
andtrailing-icon
Features
<md-item>
layout component (ffe4f79)<md-item>
to@material/web/labs
(b35212a)tabs
property to retrieve tab elements (bf48fc3)Bug Fixes
selected
attribute (573caae)selected
toactive
(23b291b)active
on tab selects them (1442f9b)Miscellaneous Chores
Code Refactoring
fixed
topositioning
(63b0142)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.