Elizabeth Mitchell
9bbe75a492
docs: fix tab's change event description for active tab properties
...
Fixes #5610
PiperOrigin-RevId: 636773653
2024-05-23 21:01:38 -07:00
Elizabeth Mitchell
1e47fd7383
fix(typography): rename md-typescale.js to md-typescale-styles.js
...
Fixes #5524
This fixes the new md-typescale file not being published. Our build assumes CSS-to-JS files end in "-styles".
This isn't a breaking change since the typescale classes haven't been published yet.
PiperOrigin-RevId: 617613456
2024-03-20 13:43:26 -07:00
Elizabeth Mitchell
36dd77ef97
feat(typography): add @material/web/typography/md-typescale
classes
...
Fixes #1050
View the updated [typography docs](https://github.com/material-components/material-web/blob/main/docs/theming/typography.md#classes ) for more info.
PiperOrigin-RevId: 613259080
2024-03-06 10:14:34 -08:00
Elliott Marquez
b74e3dd2e3
fix(elevation): expose md-elevation ::part
in all components
...
PiperOrigin-RevId: 612946796
2024-03-05 13:18:05 -08:00
Elizabeth Mitchell
c3d303eaac
chore(tabs): remove closed todo bug
...
PiperOrigin-RevId: 611579351
2024-02-29 13:35:07 -08:00
Elizabeth Mitchell
c35bad0c64
fix: rename internal <styles>.css.js
to <styles>.css
...
We are changing the names of these files to reduce similarity with CSS modules and avoid clashing with tooling built around that. If you're importing `*/internal/styles.css.js`, swap to `*/internal/styles.js`.
PiperOrigin-RevId: 611265000
2024-02-28 16:20:22 -08:00
Elizabeth Mitchell
274ce3e4e0
fix(tabs): default scroll-behavior: smooth
not working
...
Fixes #5497
PiperOrigin-RevId: 610915724
2024-02-27 16:44:14 -08:00
Elizabeth Mitchell
ec0a8ebf6e
chore: use CSSResultOrNative
instead of CSSResult
for static styles
...
PiperOrigin-RevId: 609760445
2024-02-23 10:01:56 -08:00
Elizabeth Mitchell
ce41b7bfb3
fix: use explicit CSSResult[]
types for static styles
...
PiperOrigin-RevId: 609494809
2024-02-22 14:15:11 -08:00
Copybara-Service
8d2b6447e4
Merge pull request #5456 from adrianjost:adrian/5297
...
PiperOrigin-RevId: 607080215
2024-02-14 13:05:38 -08:00
Adrian Jost
84a44772b4
implement pr feedback
2024-02-13 09:34:38 +00:00
Adrian Jost
4bce86d18b
feat(tabs): expose activeTabIndex
...
fixes #5297
2024-02-12 19:44:41 +00:00
Elizabeth Mitchell
6ecda49749
chore(tabs): fix color contrast for custom tabs demo
...
PiperOrigin-RevId: 601833325
2024-01-26 12:13:41 -08:00
Elizabeth Mitchell
5e40a1bcec
chore: create shape logical tokens in Sass component token files
...
Adds `@material/web/tokens/internal/shape` to take a shape token and create 4 logical tokens from its value.
All components' logical shape tokens are now generated by the token files themselves, rather than added in each component's styles.
PiperOrigin-RevId: 601783846
2024-01-26 09:13:58 -08:00
Elizabeth Mitchell
84536d7416
chore: update components to use custom properties from tokens
...
PiperOrigin-RevId: 601597083
2024-01-25 16:13:41 -08:00
Elizabeth Mitchell
eb7c17e3dc
fix(tabs): tabs.scrollToTab()
not working
...
Fixes #5385
The thing that scrolls is an internal element, not the host element.
PiperOrigin-RevId: 599221652
2024-01-17 10:42:14 -08:00
Elizabeth Mitchell
ddf1fb0c61
fix(tabs): --md-elevation-level
no longer leaks into tabs
...
Fixes #5137
PiperOrigin-RevId: 591357826
2023-12-15 14:19:15 -08:00
Elizabeth Mitchell
c319236cd1
refactor: remove Firefox ARIAMixin polyfills (v119+)
...
This is now fixed in the latest two versions of Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1785412
PiperOrigin-RevId: 586442947
2023-11-29 13:48:38 -08:00
Elliott Marquez
2adcb1479a
docs: document events in jsdoc
...
PiperOrigin-RevId: 581041601
2023-11-09 15:25:21 -08:00
Elizabeth Mitchell
dd005df780
fix(tabs): allow changing tab padding
...
PiperOrigin-RevId: 577030425
2023-10-26 17:19:54 -07:00
Elizabeth Mitchell
f5daadc307
chore: update components to use mixinFocusable
...
PiperOrigin-RevId: 576982507
2023-10-26 14:09:08 -07:00
Elizabeth Mitchell
c390291687
chore: format files with prettier
...
PiperOrigin-RevId: 576601342
2023-10-25 11:59:00 -07:00
Copybara-Service
2e993d3e2c
Merge pull request #4917 from VandeurenGlenn:fix-scroll-behavior-type
...
PiperOrigin-RevId: 576269563
2023-10-24 13:58:09 -07:00
Copybara-Service
44afa3a458
Merge pull request #4904 from bbuhler:fix-tab-elevation-shape
...
PiperOrigin-RevId: 576201630
2023-10-24 11:12:18 -07:00
Material Web Team
b7be1cbbb4
fix(tabs): fields intended to be accessed from templates must be exported
...
PiperOrigin-RevId: 575262457
2023-10-20 10:50:04 -07:00
Andrew Jakubowicz
8ec08133af
fix(tabs)!: use md-tab
attribute to brand individual tab children
...
PiperOrigin-RevId: 568943375
2023-09-27 13:27:09 -07:00
Andrew Jakubowicz
db3c8651c2
fix(tabs): revert isTab
check so it is possible to create your own tab
...
PiperOrigin-RevId: 568887695
2023-09-27 10:16:41 -07:00
Andrew Jakubowicz
e10186e91b
fix(tabs): revert isTab
check so it is possible to create your own tab
...
PiperOrigin-RevId: 568670280
2023-09-26 15:48:02 -07:00
Glenn Vandeuren
349c2d1ee5
fix(tabs): type const -> ScrollBehavior
2023-09-13 18:47:30 +02:00
Benjamin Buhler
a7d20447f0
fix(tabs): apply shape to tab elevation
2023-09-12 18:42:28 +02:00
Elizabeth Mitchell
d0ff335f59
chore(tabs): remove deprecated properties
...
PiperOrigin-RevId: 564472979
2023-09-11 12:48:59 -07:00
Elizabeth Mitchell
58f2446246
fix(tabs): a11y and tabs sometimes not activating
...
PiperOrigin-RevId: 564453926
2023-09-11 11:43:09 -07:00
Elizabeth Mitchell
1442f9b223
fix(tabs): setting active
on tab selects them
...
BREAKING CHANGE: Rename the `selected` index property on md-tabs to `activeTabIndex` (`active-tab-index` attribute). Rename `select-on-focus` to `auto-activate`
PiperOrigin-RevId: 564437639
2023-09-11 10:53:44 -07:00
Elizabeth Mitchell
a0fca90bdf
fix(tabs): scrollable divider not taking up full width
...
PiperOrigin-RevId: 563802077
2023-09-08 11:13:34 -07:00
Elizabeth Mitchell
70ce0d2779
fix(tabs): remove previously selected tab property
...
PiperOrigin-RevId: 563797711
2023-09-08 10:58:52 -07:00
Elizabeth Mitchell
2468241157
chore(tabs): re-organize protected/private methods
...
PiperOrigin-RevId: 563792866
2023-09-08 10:43:08 -07:00
Elizabeth Mitchell
88eb1759c5
fix(tabs): remove font shorthand tokens
...
BREAKING CHANGE: replace `label-text-type` tokens with `-font`, `-size`, `-line-height`, and `-weight`
PiperOrigin-RevId: 563790527
2023-09-08 10:35:03 -07:00
Elizabeth Mitchell
bf48fc307e
feat(tabs): add tabs
property to retrieve tab elements
...
PiperOrigin-RevId: 563784477
2023-09-08 10:13:42 -07:00
Elizabeth Mitchell
23b291b2dd
fix(tabs): rename tab selected
to active
...
BREAKING CHANGE: rename `selected` to `active` for primary and secondary tabs.
PiperOrigin-RevId: 563782741
2023-09-08 10:07:55 -07:00
Elizabeth Mitchell
d296316a2b
fix(tabs): remove public indicator property
...
PiperOrigin-RevId: 563781246
2023-09-08 10:02:54 -07:00
Elizabeth Mitchell
6f24bd222a
fix(tab): move aria to host
...
PiperOrigin-RevId: 563200891
2023-09-06 13:33:21 -07:00
Elizabeth Mitchell
08acc413f6
chore: add polyfill for Firefox ElementInternals aria
...
PiperOrigin-RevId: 563194223
2023-09-06 13:10:49 -07:00
Andrew Jakubowicz
58497f13b2
fix(tabs): use instanceof to check for a Tab
...
PiperOrigin-RevId: 562917297
2023-09-05 15:56:28 -07:00
Elizabeth Mitchell
2295f12e71
fix: add aria-hidden="true" to ripple, focus ring, and elevation
...
PiperOrigin-RevId: 562075778
2023-09-01 16:33:32 -07:00
Andrew Jakubowicz
17ddcd3c2e
fix(tabs): add nocollapse so isTab doesn't get minified
...
PiperOrigin-RevId: 561694207
2023-08-31 10:30:49 -07:00
Elizabeth Mitchell
80de947d08
chore(tabs): minor code/visibility refactors
...
Changes:
- Use ElementInternals for aria roles outside of Firefox
- Don't export Tabs interface used by tab
- Get parent tabs element with closest() rather than
- Remove md-tabs delegate focus (not used)
- Remove selectedAttribute property (always 'selected')
- Made focusedItem private
PiperOrigin-RevId: 561287221
2023-08-30 03:23:51 -07:00
Elizabeth Mitchell
6b2955bffe
fix(tabs)!: secondary tabs always have inline icons
...
PiperOrigin-RevId: 561157766
2023-08-29 15:39:24 -07:00
Elizabeth Mitchell
0467c4845d
fix(tabs): incorrect layout and primary indicator width
...
PiperOrigin-RevId: 561091366
2023-08-29 11:33:46 -07:00
Elizabeth Mitchell
5b13b5c05b
fix(tabs)!: split md-tab into md-primary-tab and md-secondary-tab
...
BREAKING CHANGE: remove `variant` attributes and change `md-tab` to `md-primary-tab`, or `md-secondary-tab` if using `variant="secondary"
PiperOrigin-RevId: 561077231
2023-08-29 10:47:55 -07:00
Elizabeth Mitchell
13690a396f
fix(tabs): remove divider tokens in favor of md-divider
...
BREAKING CHANGE: Remove `--md-*tab-divider` tokens and use `md-tabs::part(divider)` and `--md-divider-*` tokens
PiperOrigin-RevId: 560127620
2023-08-25 10:16:46 -07:00