Commit Graph

37 Commits

Author SHA1 Message Date
release-please[bot]
5dc8ed87a2
chore: release 1.5.1 2024-06-25 00:49:27 +00:00
release-please[bot]
39f5bd51d9
chore: release 1.5.0 2024-05-23 17:03:00 +00:00
release-please[bot]
52df5e0da5
chore: release 1.4.1 2024-04-15 19:50:58 +00:00
release-please[bot]
a6f78680ff
chore: release 1.4.0 2024-03-21 19:41:02 +00:00
release-please[bot]
653050db82
chore: release 1.3.0 2024-02-22 17:57:23 +00:00
release-please[bot]
79c00f5fc9
chore: release 1.2.0 2024-01-24 18:45:44 +00:00
release-please[bot]
79ef9f6f5d
chore: release 1.1.1 2023-12-13 22:22:57 +00:00
release-please[bot]
40e63ec3ee
chore: release 1.1.0 2023-12-12 20:48:06 +00:00
release-please[bot]
89f1f7b3ce
chore: release 1.0.1 2023-10-18 17:55:42 +00:00
release-please[bot]
f5d408e940
chore: release 1.0.0 2023-09-26 21:49:18 +00:00
Elizabeth Mitchell
911455948e chore: revert changelog commit
PiperOrigin-RevId: 568654393
2023-09-26 14:47:17 -07:00
release-please[bot]
106b03614a chore: release 1.0.0
🤖 I have created a release *beep* *boop*
---

## [1.0.0](https://github.com/material-components/material-web/compare/v1.0.0-pre.17...v1.0.0) (2023-09-25)

### ⚠ BREAKING CHANGES

* **list:** the new ListController behavior no longer waits for event.preventDefault asynchronously because it was causing keyboard navigations to scroll the page.
* **list:** `<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> ``` Add `type="button"` or `type="link"` for interactive list items.
* **menu:** Several enums in menu had their values changed from SCREAM_CASE to kebab-case to follow style guide. They are NAVIGABLE_KEYS -> NavigableKey, SELECTION_KEY -> SelectionKey, CLOSE_REASON -> CloseReason, KEYDOWN_CLOSE_KEY -> KeydownCloseKey
* **menu,select:** refactor `fixed` property to `positioning="fixed"` in Menu and `menuFixed` to `menuPositioning="fixed"`
* **menu:** This change refactors menu-item to no longer subclass or import from list-item. It also refactors it to use md-item directly which means that the API of menu item has moved from properties to slots. `start-*` and `end-*` slots are now just `start` and `end`, many tokens are now gone in favor of slotting. `headline` property is now a `slot="headline"` slot. Typeahead search text can now be set via `typeaheadText` which defaults to the slotted headline `textContent`. `select-option` now has the `displayText` which is used to display text in the `md-select` when the option is selected; defaults to the slotted headline `textContent`.
* **menu:** We have deleted `md-sub-menu-item`. Instead it is recommended to use `md-sub-menu` which can have `md-menu-item[slot=item]` and `md-menu[slot=menu]` slotted into it. This makes `sub-menu-item` accessible for screen readers using linear navigation
* **menu:** Menu no longer uses md-list internally which means the list-related properties such as `list-tabindex` and `type` should now be on the host of md-menu. The new attributes should be `tabindex` and `role` respectively.
* **iconbutton:** Replace `container-size` tokens with `container-width` and `container-height`.
* **list:** the `noninteractive` property has been replaced by the `interactive` property, and by default, a list-item will no longer show a ripple or focus ring. What to change:
    - To preserve prior default behavior, add the `interactive` attribute explicitly.
    - Any setting of a truthy `noninteractive` attribute or property can be removed as it's the new default behavior.
* **menu:** rename corner and focus state values lowercase with dashes
* **chips:** chips now follow the [aria toolbar pattern](https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/examples/toolbar/). Chip sets are toolbars and chips are buttons or links. Filter chips are toggle buttons. What to change:
    - Remove `type` attribute from `<md-chip-set>` (you can mix and match chip types!)
    - Remove `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.
    - Disabled chips CAN be focused with the keyboard if `always-focusable` is set.
    - Filter chips no longer dispatch a `"selected"` event. Listen to `"click"` and use `event.target.selected` instead.
    - ArrowUp and ArrowDown no longer navigate between chips. These are reserved for chip actions, like dropdown menu chips.
* **list,menu,select:** the data-variant=".." selectors in list-item and all variants have been removed in favor of their respective slots. e.g. a slotted icon of the form `md-icon[slot=end][data-variant=icon]` should now be `md-icon[slot=end-icon]`.
* **menu:** menu selected container color changed to secondary-container
* **list:**
* **list:** Aria and roles on List have been moved to the host element. list-tabindex attribute should be migrated to tabindex attribute. type attribute should be migrated to role attribute.
* **list,menu,select:** removed `active` from list-item, menu-item, and select-option. Instead, List uses tabindex to track whether something is focusable.
* **select:** `option.selected` no longer reflects. Set the attribute instead if relying on the attribute for styles/queries.
* **dialog:** if overriding margin on a dialog's content, swap it to padding. If a dialog's slotted first or last child has built-in margin (such as `<h3>` or `<p>`), remove the top/bottom margin as needed (since margin swapped to padding, there's no more margin collapsing).
* **tabs:** Rename the `selected` index property on md-tabs to `activeTabIndex` (`active-tab-index` attribute). Rename `select-on-focus` to `auto-activate`
* **typography:** composite `-type` tokens are no longer supported. Use discrete `-font`, `-size`, `-line-height`, and `-weight` tokens instead.
* **tabs:** replace `label-text-type` tokens with `-font`, `-size`, `-line-height`, and `-weight`
* **tabs:** rename `selected` to `active` for primary and secondary tabs.
* **textfield:** replace slot names `leadingicon` and `trailingicon` with `leading-icon` and `trailing-icon`
* **select:** replace `leadingicon` and `trailingicon` slot names with `leading-icon` and `trailing-icon`
* **navigationtab:** change slot names activeIcon and inactiveIcon to active-icon and inactive-icon

### Features

* **chips:** swap to toolbar a11y pattern ([16bfac1](16bfac1343))
* **iconbutton:** update tokens to v0.192 ([e8b5b29](e8b5b29d1e))
* **item:** add `&lt;md-item&gt;` layout component ([ffe4f79](ffe4f79b5d))
* **items:** add `&lt;md-item&gt;` to `@material/web/labs` ([b35212a](b35212a9ac))
* **list,menu,select:** add slots for specific slotted variants ([ed68995](ed689952dd))
* **menu:** create a Menu interface for easier md-menu wrapping ([5fad4f0](5fad4f088f))
* **menu:** do not close menu if anchor is clicked ([c7c276f](c7c276fdfa))
* **menu:** implement md-sub-menu ([54fbb2e](54fbb2ed5e))
* **menu:** menus will resize and flip corners to stay in viewport ([235a203](235a2033d7))
* **menu:** update tokens to v0.192 ([94b5c81](94b5c8125e))
* **select:** add required and form association ([4ad2336](4ad2336b87)), closes [#4903](https://github.com/material-components/material-web/issues/4903)
* **tabs:** add `tabs` property to retrieve tab elements ([bf48fc3](bf48fc307e))
* **typography:** add typography Sass APIs ([8e480de](8e480deae3))

### Bug Fixes

* aria polyfill overrides user values and user values override internals values ([8aa4faf](8aa4faf14a))
* **catalog:** remove TODO from home page ([af27ff8](af27ff8374))
* **dialog:** change content margin to padding ([8613fe6](8613fe6a58))
* **dialog:** not delegating focus in closure ([375b766](375b7664ef))
* **iconbutton:** allow prevent default click for toggles ([ed539c6](ed539c6853)), closes [#4857](https://github.com/material-components/material-web/issues/4857)
* **iconbutton:** fix HCM disabled opacity and outlined ([1163315](1163315948))
* **linearprogress:** linear progress buffer dots now visible in HCM ([70bfea8](70bfea8738))
* **list,menu:** clicking items in a list followed by keyboard nav functions as expected ([af171df](af171df086))
* **list,menu:** list items left right keyboard navigation ([fad6104](fad6104391))
* **list:** list items are now noninteractive by default ([3b5cbc4](3b5cbc4ede))
* **list:** update tokens to 0.192 ([58539b1](58539b1569))
* **menu:** allow submenus to close when focus is lost ([7a19c7e](7a19c7e97a))
* **menu:** apply padding to dividers per spec ([df52d92](df52d92724))
* **menu:** fix submenus on mobile ([368991c](368991ce30))
* **menu:** menu's default focus behavior follows google accessibility practices ([2927245](2927245114))
* **menu:** update default min width to spec and allow max-width to inherit ([2e25bf8](2e25bf8ce2))
* **navigationtab:** change slot names activeIcon and inactiveIcon to active-icon and inactive-icon ([f019ac3](f019ac37fe))
* **radio:** dispatches input event on select ([e444de3](e444de3c02))
* **select:** change slot names to kebab-case ([059dad5](059dad5d44))
* **select:** don't reflect `selected` attribute ([573caae](573caaee1b))
* **select:** select can reopen when animation interrupted ([78e7c17](78e7c1742f))
* **select:** update select docs and fix initial selection ([5e4434b](5e4434bfed))
* **slider:** border should only appear when handle nubs are overlapping ([6e72a8e](6e72a8e5f4))
* **slider:** label should not changed size when stacked ([b50d5c8](b50d5c87b3))
* **slider:** make tickmarks visible when slider is disabled ([e9d1e7d](e9d1e7d3c4))
* **tabs:** a11y and tabs sometimes not activating ([58f2446](58f2446246))
* **tabs:** remove font shorthand tokens ([88eb175](88eb1759c5))
* **tabs:** remove previously selected tab property ([70ce0d2](70ce0d2779))
* **tabs:** remove public indicator property ([d296316](d296316a2b))
* **tabs:** rename tab `selected` to `active` ([23b291b](23b291b2dd))
* **tabs:** scrollable divider not taking up full width ([a0fca90](a0fca90bdf))
* **tabs:** setting `active` on tab selects them ([1442f9b](1442f9b223))
* **textfield,focus,ripple:** fix textfield SSR ([f576b60](f576b60aec))
* **textfield:** add demo a11y and fix outlined label navigation ([7866a93](7866a939b9))
* **textfield:** broken required validity on Safari ([c26a578](c26a578448)), closes [#4796](https://github.com/material-components/material-web/issues/4796)
* **textfield:** change slot names to kebab-case ([82e9e92](82e9e92a19))
* **textfield:** don't show focus indicator when focused on icon ([61c8f6d](61c8f6db46))
* **textfield:** remove icon that appears in search input in chrome and safari ([86aaacd](86aaacd32c))
* **tokens:** generate tokens v0.192 ([116b448](116b448639))
* **tokens:** update components to v0.192 ([cfd053c](cfd053c397))

### Miscellaneous Chores

* prep release version ([df508ef](df508ef5fd))

### Code Refactoring

* **list,menu,select:** remove active concept and now parent controls tabIndex and focus ([d446315](d4463154cc))
* **list,menu,select:** remove data-variant slotted variant selectors ([1f31df8](1f31df818b))
* **list:** move list aria to host ([9447ec7](9447ec7d72))
* **list:** refactor list to reuse ListController ([6d0c7e8](6d0c7e8538))
* **list:** refactor list using md-item ([7536774](753677489b))
* **menu,select:** rename `fixed` to `positioning` ([63b0142](63b01425e7))
* **menu:** pull logic out of menuitem into a controller & change enum vals ([1217b62](1217b62ef2))
* **menu:** refactor menu-item to use md-item and not rely on md-list-item ([2a1d877](2a1d8776a7))
* **menu:** remove sub-menu-item in favor of sub-menu ([d6cbf74](d6cbf74137))
* **menu:** rename corner and focus state values lowercase with dashes ([6e54048](6e54048f1e))
* **menu:** update menu to use host-aria ([0384507](0384507447))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-web/pull/4861 from material-components:release-please--branches--main--components--web 326c90e54feed2fbf1487d6154fdb1394963eec5
PiperOrigin-RevId: 568652033
2023-09-26 14:38:37 -07:00
release-please[bot]
36df59b333
chore: release 1.0.0-pre.17 2023-09-06 20:16:50 +00:00
release-please[bot]
881d61ce3a
chore: release 1.0.0-pre.16 2023-08-21 22:05:16 +00:00
release-please[bot]
bc6c504391
chore: release 1.0.0-pre.15 2023-08-10 23:36:08 +00:00
release-please[bot]
678b57700b
chore: release 1.0.0-pre.14 2023-07-24 19:03:56 +00:00
release-please[bot]
2c234cf7c9
chore: release 1.0.0-pre.13 2023-07-10 19:45:04 +00:00
release-please[bot]
defa907f40
chore: release 1.0.0-pre.12 2023-06-28 22:25:14 +00:00
release-please[bot]
6e5af92a8f
chore: release 1.0.0-pre.11 2023-06-16 20:17:15 +00:00
release-please[bot]
e8d1b32f49
chore: release 1.0.0-pre.10 2023-06-05 20:26:52 +00:00
release-please[bot]
1d62926256
chore: release 1.0.0-pre.9 2023-05-25 01:00:24 +00:00
release-please[bot]
cec20f926e
chore: release 1.0.0-pre.8 2023-05-08 22:44:46 +00:00
Elizabeth Mitchell
0ac59023e5 chore: revert release file changes
PiperOrigin-RevId: 530427567
2023-05-08 15:44:20 -07:00
release-please[bot]
c9ab553129 chore: release 1.0.0-pre.8
🤖 I have created a release *beep* *boop*
---

## [1.0.0-pre.8](https://github.com/material-components/material-web/compare/v1.0.0-pre.7...v1.0.0-pre.8) (2023-05-04)

### Features

* **focus:** improve usability ([34d8db0](34d8db09aa))

### Bug Fixes

* **checkbox:** incorrect logical shape var names ([c2ca4f8](c2ca4f8795))
* **checkbox:** support logical shapes ([e62b16b](e62b16b9a6))
* **focus:** control not working when `for` reflects as empty ([f83db36](f83db369c2))
* **focus:** update focus-ring tokens ([5934de0](5934de0603))
* **listitem:** hide android tap color since we have ripple ([0d3d032](0d3d032a4c))
* **menu:** fix submenu closing when already opened and all menus closing when hovering over menuitem ([f6d72f9](f6d72f9c3f))
* **ripple:** ensure ripple occurs when a keyboard generated click happens after a pointer click ([016b851](016b8513e7))
* **slider:** disabled slider no longer displays pressed handle color when pressed ([4c229d9](4c229d9872))
* **testing:** don't fire focus events twice ([04d3496](04d3496a71))
* **tokens:** bugs with component values() functions ([beb5f81](beb5f816ea))

### Miscellaneous Chores

* update next version ([60afab6](60afab619e))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-web/pull/4193 from material-components:release-please--branches--main--components--web 985b5895b701887ffd2f6fe40fcd78a2bb80b5d6
PiperOrigin-RevId: 530423754
2023-05-08 15:28:55 -07:00
release-please[bot]
c6c65ce6d0
chore: release 1.0.0-pre.7 2023-04-24 21:10:59 +00:00
release-please[bot]
3affe905c1
chore: release 1.0.0-pre.6 2023-04-10 16:50:52 +00:00
Elizabeth Mitchell
ea5f87eccb chore: revert release changes
PiperOrigin-RevId: 523136067
2023-04-10 09:34:43 -07:00
release-please[bot]
4a898fb5b7 chore: release 1.0.0-pre.6
🤖 I have created a release *beep* *boop*
---

## [1.0.0-pre.6](https://github.com/material-components/material-web/compare/v1.0.0-pre.5...v1.0.0-pre.6) (2023-04-06)

### ⚠ BREAKING CHANGES

* **elevation:** remove elevation surfaces
* **iconbutton:** rename selected aria label property, add documentation
* **elevation:** remove surface for tonal surface update
* **iconbutton:** combine button, link, and toggle variants into single components
* **button:** merge standard and link buttons

### Features

* **circular-progress:** adds circular-progress element ([3adab6a](3adab6ae19))
* **focus:** export the keydown handler ([d7fdfda](d7fdfda162))
* **focus:** implement focus ring animation ([85232d5](85232d5916))
* **iconbutton:** combine button, link, and toggle variants into single components ([0aa39e8](0aa39e8153))
* **iconbutton:** rename selected aria label property, add documentation ([5d3af37](5d3af375f0))
* **list,menu:** implement forced colors ([712aab3](712aab3efc))
* **tokens:** generate v0.170 ([2b9daea](2b9daead7f))
* **tokens:** generate v0.172 ([189ef06](189ef06018))

### Bug Fixes

* **button:** incorrect theme custom properties ([2c1c80d](2c1c80d3d6)), closes [#4095](https://github.com/material-components/material-web/issues/4095)
* **button:** merge standard and link buttons ([acfdbb4](acfdbb4f92))
* **button:** tonal surface update ([50157e6](50157e61a7))
* **checkbox:** tonal surface update ([7279356](72793562e2))
* **chips:** tonal surface update ([60ef2ab](60ef2abbe7))
* complete tonal surface update ([7368e2a](7368e2a2e2))
* **dialog:** tonal surface update ([c64f416](c64f416eca))
* **elevation:** remove elevation surfaces ([d801a5f](d801a5f7cd))
* **fab:** tonal surface update ([92a9071](92a907142c))
* **iconbutton:** tonal surface update ([52b45f1](52b45f1435))
* **list:** fix strong focus first keyboard nav ([6398186](6398186d05))
* **menu:** close menu on focusout and make it configurable ([3445b63](3445b631fe))
* **menu:** properly implement selected state ([bfa1bec](bfa1bec320))
* **menu:** tonal surface update ([7ccc21e](7ccc21e0d2))
* **navigationbar:** tonal surface update ([ebe666e](ebe666eb6a))
* **navigationbar:** tonal surface update ([a5fe8f3](a5fe8f3037))
* **navigationdrawer:** tonal surface update ([4f9df51](4f9df513dd))
* **radio:** tonal surface update ([b5065a6](b5065a68a8))
* **ripple:** tonal surface update ([f08a9db](f08a9db3d8))
* **slider:** tonal surface update ([9a020b9](9a020b96e8))
* **switch:** tonal surface update ([6ccc759](6ccc7595dc))
* **textfield:** tonal surface update ([f15d8ca](f15d8ca2fa))

### Miscellaneous Chores

* **elevation:** remove surface for tonal surface update ([d12ed3e](d12ed3e4e3))
* update next version ([a878783](a878783d8d))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-web/pull/4078 from material-components:release-please--branches--master--components--web 9dce2e369f947287e0bea927c15231e98c3acdd5
PiperOrigin-RevId: 523131857
2023-04-10 09:15:26 -07:00
release-please[bot]
dab0449e14
chore: release 1.0.0-pre.5 2023-03-21 22:25:35 +00:00
release-please[bot]
68f1f1c2aa
chore: release 1.0.0-pre.4 2023-03-08 23:26:17 +00:00
release-please[bot]
5df352072b
chore: release 1.0.0-pre.3 2023-02-22 17:59:41 +00:00
release-please[bot]
1b953f5ca1
chore: release 1.0.0-pre.2 2023-02-06 19:04:39 +00:00
release-please[bot]
e83b4d94c6
chore: release 1.0.0-pre.1 2023-01-09 22:18:33 +00:00
release-please[bot]
42ac2dffc2
chore: release 1.0.0-pre.0 2023-01-09 18:06:19 +00:00
Elizabeth Mitchell
0b5283dadf chore: update release-please
Release-As: 1.0.0-pre.0
PiperOrigin-RevId: 500741815
2023-01-09 10:04:00 -08:00
Elizabeth Mitchell
2c3630c117 chore: set release-please manifest to current version
PiperOrigin-RevId: 500282132
2023-01-07 00:17:23 +00:00
Elizabeth Mitchell
2d7f5dc137 chore: update release-please to use github app
PiperOrigin-RevId: 500045857
2023-01-05 21:12:22 -08:00