@material/menu
Advanced tools
Changelog
4.0.0 (2019-11-02)
overflow: visible
to button. (#4973) (905e84e)checkbox: mdc-checkbox-ink-color
mixin now only applies to enabled checkboxes
chips: Chips markup, adapters, foundations, and events have changed.
select: In MDCMenu and MDCMenuSurface, hoistMenuToBody
adapter method removed. In MDCSelect, HTML structure changed: the select anchor is now wrapped in a parent element, and the anchor's sibling is the select menu. Support for native select removed. Support added for select with no label. MDCSelectAdapter methods removed: getValue
, setValue
, isMenuOpen
, setSelectedIndex
, checkValidity
, setValid
, toggleClassAtIndex
. MDCSelectAdapter methods added: hasLabel
, getSelectedMenuItem
, setSelectedText
, isSelectedTextFocused
, get/setSelectedTextAttr
, getAnchorElement
, setMenuAnchorElement
, setMenuAnchorCorner
, setMenuWrapFocus
, set/removeAttributeAtIndex
, focusMenuItemAtIndex
, getMenuItemValues
, getMenuItemCount
, getMenuItemCount
, getMenuItemAttr
, getMenuItemTextAtIndex
, add/removeClassAtIndex
. MDCSelectFoundation setValue
method removed; getDisabled
, handleMenuItemAction
, getSelectedIndex
, get/setRequired
, init
added.
radio: In Checkbox, Renamed sass variables $mdc-radio-touch-area
=> $mdc-radio-ripple-size
& $mdc-radio-ui-size
=> $mdc-radio-icon-size
to be consistent with checkbox. Also, removed $mdc-radio-ui-pct
sass variable.
switch: Renames switch variables $mdc-switch-tap-target-size => $mdc-switch-ripple-size, removes $mdc-switch-tap-target-initial-position and $mdc-switch-native-control-width.
list: New adapter method listItemAtIndexHasClass
list: Renamed mixin mdc-list-item-shape-radius()
=> mdc-list-single-line-shape-radius()
linear-progress: MDCLinearProgressAdapter adapter has new forceLayout
method
text-field: Removed sass variable in notched outline - $mdc-notched-outline-transition-duration
.
mdc-fab: This changes the structure of the FAB element by moving the ripple from the outer element to an inner mdc-fab__ripple element.
OLD
<button class="mdc-fab" aria-label="Favorite">
<span class="mdc-fab__icon material-icons">favorite</span>
</button>
NEW
<button class="mdc-fab" aria-label="Favorite">
<div class="mdc-fab__ripple"></div>
<span class="mdc-fab__icon material-icons">favorite</span>
</button>
radio: Ripple has been moved to a child element. See readme for updates.
slider: remove adapter methods appendTrackMarkers
, removeTrackMarkers
, setLastTrackMarkersStyleProperty
, and add adapter method setTrackMarkers
.
button: This changes the structure of the button element by moving the ripple from the outer <button> element to an inner mdc-button__ripple
element.
OLD
<button class="mdc-button">
<span class="mdc-button__label">Hello World</span>
</button>
NEW
<button class="mdc-button">
<div class="mdc-button__ripple"></div>
<span class="mdc-button__label">Hello World</span>
</button>
chips: MDCChipSetAdapter#removeChip has been replaced with MDCChipSetAdapter#removeChipAtIndex. MDCChipSetAdapter#setSelected has been replaced with MDCChipSetAdapter#selectChipAtIndex
density: Renamed sass mixins & variables in MDC Data Table - mdc-data-table-header-row-height
=> mdc-data-table-header-cell-height
& mdc-data-table-row-height
=> mdc-data-table-cell-height
. Also removed mdc-button--dense
variant, use button's density mixin instead.
Note: For older changes, see the changelog archive.
Changelog
14.0.0 (2022-04-27)
unset
is unsupported in IE. (f460e23)validateTooltipWithCaretDistances
method. (3e30054)theme-styles
mixin... the value being retreived from the $theme
map and css property name was swapped. The mixin would request font-size
/font-weight
/letter-spacing
from the $theme
map (which expects size
/weight
/tracking
)... so these values would always be null
. (32b3913)attachTo
. (05db65e)showTimeout
is not set (indicating that this tooltip is about to be re-shown). (6ca8b8f)minRange
param to range sliders to request a minimum gap between the two thumbs. (8fffcb5)valueToAriaValueTextFn
and valueToValueIndicatorTextFn
functions are called for. (b6510c8)PiperOrigin-RevId: 444830518
PiperOrigin-RevId: 419837612