Skip to content
New issue

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

[pull] master from material-components:master #1150

Open
wants to merge 622 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
622 commits
Select commit Hold shift + click to select a range
697fbde
fix(tooltip): Fixes rich tooltip's theme-styles mixin.
sayris Nov 18, 2022
d584104
fix(tooltip): Fixes rich tooltip's theme-styles mixin.
sayris Nov 18, 2022
7971d6a
fix(slider): resolve Sass deprecation warning
material-web-copybara Nov 19, 2022
a0ae73b
fix(chips): Update elevation resolver function and mixins that apply …
material-web-copybara Nov 21, 2022
96f4726
fix(chips): Update elevation resolver function and mixins that apply …
material-web-copybara Nov 21, 2022
18b8f31
feat(select): do not emit styles when calling `theme-styles(())`.
codr Nov 21, 2022
912f33c
refactor(select): remove dead code from theme Sass
codr Nov 21, 2022
8961299
chore: remove firefox testing (#7880)
codr Nov 23, 2022
1e1b1c3
refactor(select): update token name for bottom indicator color.
codr Nov 23, 2022
a2ec492
refactor(select): remove sass_true test because it is not future proof.
codr Nov 23, 2022
002d98b
refactor: simplify typing on test helper.
codr Nov 23, 2022
a7458ba
docs(select): Add comment to explain why `text-field-container-height…
codr Nov 23, 2022
b8fd0c5
chore(testing): cleanup lint warning for no-any and prefer-function-d…
codr Nov 23, 2022
7c35e50
fix(chips): Update elevation resolver logic and update suggestion chi…
material-web-copybara Nov 24, 2022
4356e05
fix(chips): Add missing tokens for leading icon for validation
material-web-copybara Nov 24, 2022
cb605f8
chore(shape): Enable resolving shape tokens into four separate tokens…
material-web-copybara Nov 24, 2022
05fb07f
fix(chips): Update theme mixins to use the new resolver function
material-web-copybara Nov 24, 2022
a911b38
fix(list): Fixes how list handles `CTRL-A` keyboard interactions for …
sayris Nov 28, 2022
2aa8050
feat(list): Fixes focus behavior on disabled list items when `areDisa…
sayris Nov 28, 2022
323904a
refactor(select): adjust tokens related to drop-down indicator color
material-web-copybara Nov 29, 2022
168a629
fix: rollback of cl/491630368
codr Nov 29, 2022
65c4116
feat(list): Changing default value of `areDisabledItemsFocusable` to …
sayris Nov 29, 2022
a86d36f
feat(datepicker): datepicker textfield theming api
bbritto Nov 30, 2022
3a1f46c
fix(tabs): Add already supported tokens to the theme list
material-web-copybara Nov 30, 2022
32d8a96
feat(focus-ring): Added a SASS function to help more easily mold the …
material-web-copybara Dec 1, 2022
03618ab
fix(menusurface): Allow for having (non hoisted) menu inside an overf…
material-web-copybara Dec 1, 2022
68aaed9
fix(iconbutton): support custom properties as values for an icon button
Yavanosta Dec 1, 2022
f0a0bbc
feat(theme): allow to specify varname prefix in custom-properties con…
material-web-copybara Dec 2, 2022
dd99c87
feat(touch-target): margin mixin now also allows custom property maps…
sn-kaier Dec 2, 2022
fabdcca
refactor(textfield): Use validate.theme.
EstebanG23 Dec 2, 2022
2d26722
refactor(select): adjust tokens related to drop-down indicator color
material-web-copybara Dec 2, 2022
eaa0c3a
feat(list): Removes ripple styling on disabled list items.
sayris Dec 2, 2022
79a613b
style(list): Set opacity to secondary and overline text in list item
material-web-copybara Dec 6, 2022
c871fe6
improvement(chips): apply disabled container color token for selected…
material-web-copybara Dec 7, 2022
9eaee79
chore(textfield): Add TODO bug to update theming API implementation b…
joyzhong Dec 7, 2022
1d37bf6
feat(textfield): Add character counter to theming api
EstebanG23 Dec 7, 2022
a5fe069
fix(datatable): Remove unsupported token
kvizcarra Dec 9, 2022
ce8b532
fix(datatable): Add extra class to pagination Select to fix GM3 styles
kvizcarra Dec 9, 2022
43f5323
feat(focus): Remove `focus-ring.theme-component` and `focus-ring.them…
material-web-copybara Dec 12, 2022
5490e32
feat(tooltip): Updates to accessibility guidance states that we want …
sayris Dec 12, 2022
817002c
feat(tooltip): When calculating rich tooltip width, we now take the v…
sayris Dec 13, 2022
313a132
refactor(tabs): Change underline-color mixin from private to public
material-web-copybara Dec 14, 2022
a69c14e
fix(focus): focus-ring.theme-styles now ingests custom properties emi…
material-web-copybara Dec 14, 2022
f43e0ce
fix(card): Fix card ripple issue - the ripple is a child of the prima…
joyzhong Dec 14, 2022
0347671
fix(list): Initialize selectedIndex as an array for checkbox list
material-web-copybara Dec 14, 2022
1f99f3c
fix(focus): Use validate.theme-styles in focus-ring.theme-styles.
material-web-copybara Dec 15, 2022
cfd6949
feat(datatable): Expose `$custom-property-prefix` for internal usage
kvizcarra Dec 16, 2022
94ad8d9
refactor: remove deprecated touchtarget files.
codr Dec 19, 2022
6042642
chore: prepping menu for internal release
patrickrodee Dec 21, 2022
85bcff6
refactor(tabs): Move theme validations to individual components & int…
material-web-copybara Dec 22, 2022
ece3e8d
feat(list): Add support for list-item-selected-container-color and li…
Yavanosta Dec 22, 2022
278ad53
refactor: Generated CL to address lint warnings.
codr Dec 27, 2022
a7d8389
refactor(datatable): remove deprecated `strings` constant
codr Dec 27, 2022
8175d5e
refactor: run formatter across all TS files.
codr Dec 28, 2022
16abb41
refactor: Address small linting warning such as missing semicolon and…
codr Dec 28, 2022
e21dcb8
refactor: cleanup some tslint comments
codr Dec 29, 2022
20ab6f5
refactor: cleanup test fixture creation
codr Dec 29, 2022
b9806f6
refactor: Update MDCComponent#root to HTMLElement
codr Dec 29, 2022
50c9f55
refactor: cleanup test fixture creation, part 2
codr Jan 3, 2023
af490a8
refactor: use `withContext` API for jasmine `toBe` and `toEqual` matc…
codr Jan 3, 2023
7cf487c
refactor: apply lint auto-fixes to TS files
codr Jan 3, 2023
a52be2d
refactor: add safedom to safely set attributes
codr Jan 3, 2023
e38ba17
chore: cleanup old deprecated code for `attachTo`
codr Jan 3, 2023
49041a6
fix(tabs): Add validation to tab bar theme
material-web-copybara Jan 4, 2023
c492898
feat(focus-ring): Adds animation for focus-ring.
sayris Jan 4, 2023
d7a2277
fix(slider): Move comment to correct location
kvizcarra Jan 4, 2023
fd95ca7
fix: use case-insensitive comparison for the tabindex attribute
material-web-copybara Jan 5, 2023
1eb44fa
refactor(tabs): Divider tokens are applied to tab bar instead of indi…
material-web-copybara Jan 5, 2023
adcdb7d
fix(select): use `text-field-disabled-trailing-icon-color` token
codr Jan 5, 2023
067af7e
fix(slider): Use CSS Variables instead of hardcoded values for track …
kvizcarra Jan 6, 2023
21d1196
feat(button): Introduced a new token: `"keep-touch-target"` to the `t…
sn-kaier Jan 9, 2023
8d2d8d3
fix(tooltip): Stop keydown event propogation when ESC key is pressed.
sayris Jan 9, 2023
f476fde
feat(text-field): add the ability to hide the asterisk required marke…
material-web-copybara Jan 10, 2023
fc6ee6c
refactor(snackbar): use dataset instead of setAttribute in announce h…
codr Jan 10, 2023
73537ab
fix(slider): Replace `label-label-text-font-size` token with `label-l…
kvizcarra Jan 10, 2023
684e33d
fix(tooltip): Stop re-calculating the tooltip position if the anchor …
sayris Jan 10, 2023
0e89aab
fix(touch-target): touch-target mixin now works as expected also when…
material-web-copybara Jan 11, 2023
b0103d1
fix(focus): Add z-index to focus ring.
joyzhong Jan 11, 2023
50e7a53
refactor(chips): Flatten `_is-enabled`, `_is-disabled`, `_is-selected…
kvizcarra Jan 11, 2023
202823f
refactor(chips): Remove unused mixin
kvizcarra Jan 11, 2023
199fe2a
refactor(chips): Flatten over-abstracted mixins
kvizcarra Jan 11, 2023
8c0786d
fix(tabs): adjust rippple area according to container shape
material-web-copybara Jan 12, 2023
8a74f7c
fix(slider): Remove support for deprecated `label-label-text-font-siz…
kvizcarra Jan 17, 2023
b4687fd
refactor(list): Add `overflow: hidden` to the ripple element
codr Jan 19, 2023
b836b98
fix(textfield): initializes 'valid' property from the DOM.
material-web-copybara Jan 24, 2023
e8912fd
feat(focus ring): BREAKING_CHANGE Renaming focus-ring files in prepar…
sayris Jan 26, 2023
16fbd30
feat(focus ring): Defining styles for focus ring variant that animate…
sayris Jan 26, 2023
033ae08
fix(list): only set overflow hidden on mdc-list-item--with-leading-image
codr Jan 26, 2023
3a705fa
fix(focus ring): Using box-shadow instead of border for focus ring as…
sayris Jan 27, 2023
d6bea2f
refactor: remove unused variable
codr Jan 31, 2023
0c94182
refactor(ripple): remove duplicate styles.
codr Feb 1, 2023
15b2215
fix(focusring): add real color to focus ring
codr Feb 1, 2023
eeebb8b
refactor(focus-ring): rename keyframes so they don't override each other
codr Feb 1, 2023
6a4b3f8
feat(focus-ring): add Sass mixin for testing
codr Feb 1, 2023
b177b40
refactor(theme): don't use deprecated mixins
codr Feb 2, 2023
d9f8210
feat(map-ext): add a `map-get-or-err` helper function.
material-web-copybara Feb 2, 2023
47c7deb
feat(slider): Moves native inputs into thumbs to improve a11y.
material-web-copybara Feb 3, 2023
a16dbd1
chore: annotates translate{x} styles with rtl:ignore.
material-web-copybara Feb 4, 2023
93416f8
refactor(tabs): Manually focus tab upon keyboard events & introduced …
material-web-copybara Feb 7, 2023
49b8e74
chore(select): Make $custom-property-prefix var public.
joyzhong Feb 7, 2023
de38de7
feat(select): Add support for `text-field-focus-active-indicator-heig…
joyzhong Feb 9, 2023
4d62de7
chore: remove common.import.scss
codr Feb 9, 2023
6fcd8d4
feat(focusring): Extra bottom offset for inward focus ring
material-web-copybara Feb 13, 2023
066d943
refactor(focus): Set focus ring inward defaults to avoid duplication …
joyzhong Feb 15, 2023
7ab3246
chore: Add rtl-ignore directives to transform:rotate() styles so they…
material-web-copybara Feb 21, 2023
fa27ba6
feat(select): Select foundation preserves describedby elements on val…
bbritto Feb 27, 2023
311ab4d
feat(focus-ring): support variable shapes in outward variant
material-web-copybara Feb 27, 2023
901c83e
feat(select): Select foundation preserves describedby elements on val…
bbritto Feb 27, 2023
5cb8e21
feat(tooltip): No longer re-calculate persistent rich tooltip's posit…
sayris Mar 1, 2023
f323399
feat(textfield): Changed visibility of $custom-property-prefix to public
sn-kaier Mar 6, 2023
7644d63
feat(select): Select foundation preserves describedby elements on val…
bbritto Mar 6, 2023
d96330c
feat(textfield): Changed visibility of $custom-property-prefix to public
sn-kaier Mar 8, 2023
c99cae7
refactor(menu): Move mixins to `_menu.scss`
kvizcarra Mar 8, 2023
6023b1c
fix(menusurface): reposition menu surface on window resize events
material-web-copybara Mar 9, 2023
274610c
feat(textfield): Changed visibility of $custom-property-prefix to pub…
sn-kaier Mar 9, 2023
a274583
feat(menu): Add `static-styles` mixin
kvizcarra Mar 9, 2023
da22ca9
fix(menusurface): Make "private" `base_` mixin truly private
kvizcarra Mar 9, 2023
304a94e
fix(floating-label): Generate valid CSS calc
material-web-copybara Mar 9, 2023
6c26591
refactor(menusurface): Move mixins to `_menusurface.scss`
kvizcarra Mar 9, 2023
de52246
feat(menusurface): Extract `static-styles` mixin
kvizcarra Mar 9, 2023
8879557
feat(textfield): changed the visibility of the mixin `filled-no-label…
sn-kaier Mar 10, 2023
23073a3
fix(floating-label): replaced incompatible value types in calc statem…
sn-kaier Mar 10, 2023
51c7d40
refactor(banner): remove `const enum` to meet style guide.
codr Mar 10, 2023
1175a5b
refactor(lineripple): Move mixins to `_line-ripple.scss`
kvizcarra Mar 10, 2023
7adf3af
refactor(textfield): Move mixins to `_text-field.scss`
kvizcarra Mar 11, 2023
82554d7
feat(textfield): Add `static-styles` mixin
kvizcarra Mar 11, 2023
93fc524
feat(dialog): Add `z-indez` token to dialog theme styles mixin
material-web-copybara Mar 13, 2023
50be0fb
refactor(formfield): Move mixins to `_form-field.scss`
kvizcarra Mar 13, 2023
6b5ffcc
refactor(menusurface): Move mixins to `_menusurface-theme.scss`
kvizcarra Mar 13, 2023
1c8013f
feat(lineripple): Extract `theme-styles` mixin
kvizcarra Mar 13, 2023
112715d
feat(lineripple): Extract `static-styles` mixin
kvizcarra Mar 13, 2023
d250911
refactor(notchedoutline): Move mixins to `_notched-outline.scss`
kvizcarra Mar 13, 2023
7cd925c
refactor(notchedoutline): Move variables to `_notched-outline-theme.s…
kvizcarra Mar 13, 2023
b2ddacf
feat: Modify NotifyOpening event to emit after adding the "--opening"…
material-web-copybara Mar 13, 2023
989ae2e
feat(notchedoutline): Extract `theme-styles` mixin
kvizcarra Mar 13, 2023
89c6648
refactor(floatinglabel): Inline private mixins
kvizcarra Mar 13, 2023
6a85742
chore(floatinglabel): remove forwarding feature targeting sass.
codr Mar 14, 2023
bb6cd78
refactor(formfield): Move variables to `_form-field-theme.scss`
kvizcarra Mar 14, 2023
5f94aa3
refactor(menusurface): Move variables to `_menusurface-theme.scss`
kvizcarra Mar 14, 2023
906ac2e
refactor(floatinglabel): Move mixins to `_floating-label.scss`
kvizcarra Mar 14, 2023
1bd3172
feat(notchedoutline): Extract `static-styles` mixin
kvizcarra Mar 14, 2023
d441d2a
feat(formfield): Extract `static-styles` mixin
kvizcarra Mar 14, 2023
fff4066
refactor(floatinglabel): Move variables to `_floating-label-theme.scss`
kvizcarra Mar 14, 2023
a71501b
feat(menusurface): Extract `theme-styles` mixin
kvizcarra Mar 14, 2023
87809c7
feat(floatinglabel): Extract `theme-styles` mixin
kvizcarra Mar 14, 2023
48d3001
feat(formfield): Extract `theme-styles` mixin
kvizcarra Mar 14, 2023
419b23c
feat(floatinglabel): Extract `static-styles` mixin
kvizcarra Mar 14, 2023
bf86521
feat(button): Ripple styles do not update on hover for disabled buttons.
sayris Mar 14, 2023
11f3d28
refactor(sass): remove unused .import.scss files
codr Mar 15, 2023
b281a40
feat(fab): Make light-theme tokens public
material-web-copybara Mar 21, 2023
39e4736
refactor(formfield): Fork `theme-styles` mixin
kvizcarra Mar 21, 2023
cedffb4
refactor(formfield): Update `theme-styles` to accept a `$theme` map
kvizcarra Mar 21, 2023
36a4cba
fix(list): Fix list leading/trailing icon theming
bbritto Mar 28, 2023
ed7e82d
feat(formfield): Add `theme` mixin
kvizcarra Mar 28, 2023
55093ee
feat(formfield): Add `mdc-label` class to `<label>`
kvizcarra Mar 29, 2023
0c53abc
fix(linearprogress): Fix buffer dots animation when track height is i…
kvizcarra Apr 7, 2023
51311e6
feat(chips): Make light-theme tokens public
material-web-copybara Apr 7, 2023
113b1a3
fix(list): Allow alt + enter to select index for lists.
EstebanG23 Apr 10, 2023
a06bb6d
chore: Add @ts-ignore to call sites using lax Jasmine typings
taymonbeal Apr 11, 2023
ea21914
fix(linearprogress): Fix missing buffering keyframes
kvizcarra Apr 11, 2023
5a5c385
refactor(linear-progress): Use `theme-styles` by default
kvizcarra Apr 11, 2023
e4b5ea7
refactor(linearprogress): Replace deprecated `theme-color.prop-value()`
kvizcarra Apr 11, 2023
26bacc3
fix(dialog): fix dialog close button z-index in dark mode
bbritto Apr 14, 2023
a094dd9
chore: Add @ts-ignore to call sites using lax Jasmine typings
taymonbeal Apr 14, 2023
f771b09
fix: correct behavior of checkboxes/radios in a list.
material-web-copybara Apr 17, 2023
ba85afe
refactor(linearprogress): Rename `track-height` mixin to `bar-and-tra…
kvizcarra Apr 19, 2023
79b1b61
fix(linearprogress): Fix `track-color` in Theming API
kvizcarra Apr 19, 2023
6f50071
refactor(linearprogress): Delete deprecated `track-height` mixin
kvizcarra Apr 20, 2023
ef75438
refactor: migration some component tests to Sass modules
codr Apr 24, 2023
69ebf61
refactor(datatable): Extract subcomponent `static-styles()` from main…
kvizcarra Apr 27, 2023
b90be86
refactor(linearprogress): Apply height to bar and track separately
kvizcarra Apr 29, 2023
51f9c0c
feat(linearprogress): Add `bar-and-track-height` token
kvizcarra Apr 29, 2023
4e840d6
fix(dialog): Add tabindex=-1 to dialog surface and set its outline to 0
material-web-copybara May 2, 2023
10b8563
refactor(anounce): remove unnecessary casing
codr May 2, 2023
736b7fd
feat(fab): Make extended-light-theme tokens public
material-web-copybara May 3, 2023
0e533c5
refactor(datatable): Inline `adaptive-width` mixin
kvizcarra May 5, 2023
5f01c15
refactor(datatable): Split out checkbox and sorting styles from cell …
kvizcarra May 5, 2023
3b5b55e
feat(linearprogress): Implement separate `track-height` and `active-i…
kvizcarra May 5, 2023
d078812
refactor(menu): Replace timeout in foundation with CSS transition delay
material-web-copybara May 9, 2023
f52358d
fix(list): Remove ripple styles for disabled items in deprecated list.
sayris May 12, 2023
d3c3fba
refactor(linearprogress): Delete `bar-and-track-height` token
kvizcarra May 12, 2023
576d3d2
refactor: fix `no-inferrable-primitive-types` tslint warnings
codr May 16, 2023
19bb36a
fix(textfield): Add coverage for suffix and prefix text within the fo…
material-web-copybara May 16, 2023
aa5ac7f
fix(select): update text field in select to accept dynamic shape and …
codr May 22, 2023
90291f2
feat(linearprogress): Implement `track-shape` token
kvizcarra May 23, 2023
446734f
feat(dialog): Adding container-surface-tint as supported token for th…
sayris May 30, 2023
19de312
chore: generate tokens v0.161
patrickrodee Jun 6, 2023
6081d82
fix(chip): Propagate unhandled keyboard events
bbritto Jun 7, 2023
b26c34a
refactor(theme): clean up deprecated method to not use `!important`
codr Jun 7, 2023
4fe9113
refactor: remove `!important` from .mdc-theme-* styles
codr Jun 7, 2023
295a8e5
refactor(data-table): restrict bottom border styling on the last row …
material-web-copybara Jun 8, 2023
a9ff986
feat(snackbar): Add support for secondary action button
material-web-copybara Jun 13, 2023
b994146
fix(textfield): add support for placeholder color in theme api
codr Jun 14, 2023
1fb4b1a
fix(menu): do not require all for theme-styles
codr Jun 27, 2023
c64a277
fix(menu): make require-all a theme-styles param.
codr Jun 27, 2023
b05d9eb
chore(CircularProgress): add TODO to remove !important
codr Jun 29, 2023
2a9697d
fix(theme): account for null being passed into .theme-styles
codr Jun 30, 2023
0c52ade
fix(menu): Account for empty map being passed to theme mixin
codr Jul 5, 2023
83355c3
feat(select): Allow styling bottom border radii in Material Selects. …
material-web-copybara Jul 10, 2023
bc9ae6c
refactor(textfield): expose light theme map
material-web-copybara Aug 3, 2023
3c44cd9
refactor: update tests to use .toHaveClass matchers
codr Aug 7, 2023
0270229
fix: Use state-layer-size to correctly position the icon inside of an…
material-web-copybara Aug 25, 2023
872b658
refactor: add option to disable concrete values fallbacks
material-web-copybara Aug 30, 2023
89b2e41
refactor(slider): Do not cache bounding client rect.
material-web-copybara Aug 31, 2023
7a3942e
fix: The focus ring shouldn't ignore the container-shape value
material-web-copybara Aug 31, 2023
54feb30
chore: refactor button focus ring
material-web-copybara Sep 11, 2023
6cda3ce
chore: refactor button focus ring
patrickrodee Sep 12, 2023
205b20b
chore: refactor button focus ring
material-web-copybara Sep 13, 2023
22bf820
chore: refactor iconbutton focus ring
material-web-copybara Sep 18, 2023
a246a44
refactor: update variable names to be more descriptive.
codr Sep 18, 2023
d153db6
style(dialog): Move dialog scaling from container to surface.
material-web-copybara Sep 19, 2023
2528c1c
fix(button): fix theme elevation resolver
codr Sep 20, 2023
1728a6d
refactor(ripple): format ripple file
codr Sep 26, 2023
ebb636f
fix(textfield): styles that override floating-label font-size take in…
sayris Sep 29, 2023
c0d21ec
feat(datepicker, select, textfield): Support customizing label size o…
sayris Oct 9, 2023
127a44b
feat(button): Support state-layer-color theming for buttons and icon-…
material-web-copybara Oct 12, 2023
0ad1283
feat(tooltip): Interactive rich tooltip content becomes scrollable if…
sayris Oct 19, 2023
9cec940
feat(checkbox): Support state-layer-color theming for GM2 checkboxes
material-web-copybara Oct 19, 2023
c51a0bb
chore: remove unnecessary `@at-root`
material-web-copybara Nov 15, 2023
d76666a
feat(textfield): $custom-property-prefix is no longer private variabl…
sayris Nov 27, 2023
8656bf0
chore: remove leading underscore in partial load
codr Dec 12, 2023
7f224dd
fix: `aria label` lint error in strings
codr Dec 28, 2023
a0b8a90
feat(banner): Add Theming API support for graphic color and backgroun…
kvizcarra Feb 7, 2024
e50b478
feat(banner): Add Theming API support for max width and z-index
kvizcarra Feb 8, 2024
c43b343
fix(select): <fix inherited ellipsis color for list items in selects>
material-web-copybara Feb 23, 2024
819498d
feat(dialog): Add a chaining class that suppresses scrim animations.
SLaks Mar 15, 2024
453a624
fix(select): add separate touch target element to Select to maintain …
material-web-copybara Mar 25, 2024
68edc03
feat(map-ext): Rename `map-ext.map-get-or-err()` to `map-ext.get()`
kvizcarra Apr 8, 2024
5bebc00
style(list): Adds minimal styles for focus ring structure
material-web-copybara Apr 11, 2024
311f29a
feat(focus-ring): Update $ring-radius to support list type values so…
material-web-copybara Apr 23, 2024
65c10a6
feat(focus-ring): Add RTL support to focus ring mixin.
material-web-copybara Apr 25, 2024
4b35cb7
fix(formfield): Change cursor style on label to `inherit` rather than…
material-web-copybara May 2, 2024
f80ac92
chore(theme): Delete unused function
kvizcarra May 2, 2024
2f5b899
fix(formfield): Fix for #8187 (rolling back the errant commit)
material-web-copybara May 20, 2024
cfec83c
feat(tooltip): Add mixin to set max-width of rich tooltip.
material-web-copybara May 20, 2024
423edc3
style(card): Adds minimal styles for card focus ring structure
material-web-copybara Jun 26, 2024
9290bd3
fix: circular progress no longer cause dialogs to be scrollable
SLaks Jun 28, 2024
bf41f57
chore: fix typo in select HCM colors
asyncLiz Sep 4, 2024
f5b61a9
refactor(slider): Add styles for slider tick marks in high-contrast mode
material-web-copybara Sep 6, 2024
271ca16
refactor: Add `declare` to class fields in child class that overrides…
material-web-copybara Sep 26, 2024
2123067
refactor: Add declare to class fields in child class that overrides a…
material-web-copybara Sep 26, 2024
810e22d
chore: internal change
material-web-copybara Oct 8, 2024
c4e5361
chore: remove IE support. IE usage is <0.5%.
material-web-copybara Oct 21, 2024
ef11212
chore(dialog): wrap close button in element
SLaks Oct 22, 2024
099ea3a
feat(tooltip): Fix rich tooltip title alignment (multiline titles sho…
sayris Oct 25, 2024
6160219
feat(menu): HCM border-radius is no longer clipped
sayris Oct 25, 2024
e0563ec
docs: update README to clarify project status
smalls Nov 18, 2024
cb69208
chore: use string.slice
material-web-copybara Dec 13, 2024
6552191
chore: Replace deprecated global functions with relevant equivalents.
material-web-copybara Dec 22, 2024
6ceadb8
chore: upgrade safevalues dependency to ^1.0.1
material-web-copybara Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 10
node-version: 14
registry-url: https://registry.npmjs.org/
- name: Cache dependencies
uses: actions/cache@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 10
node-version: 14
registry-url: https://registry.npmjs.org/
- name: Cache dependencies
uses: actions/cache@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 10
node-version: 14
registry-url: https://registry.npmjs.org/
- name: Cache dependencies
uses: actions/cache@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 10
node-version: 14
registry-url: https://registry.npmjs.org/
- name: Cache dependencies
uses: actions/cache@v2
Expand Down
27 changes: 4 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
node-version: 14
- uses: actions/cache@v2
with:
path: ~/.npm
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
node-version: 14
- uses: actions/cache@v2
with:
path: |
Expand All @@ -64,7 +64,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
node-version: 14
- uses: actions/cache@v2
with:
path: |
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
node-version: 14
- uses: actions/cache@v2
with:
path: |
Expand All @@ -108,22 +108,3 @@ jobs:
- name: Run dependency tests
run: |
npm run test:dependency
sass-test:
runs-on: ubuntu-latest
needs: install
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
- uses: actions/cache@v2
with:
path: |
node_modules
packages/*/node_modules
!packages/*/node_modules/@material
key: ${{ runner.os }}-lerna-${{ hashFiles('package-lock.json', 'packages/**/package.json') }}
- run: npm run link
- name: Run Sass tests
run: |
npm run test:sass
6 changes: 5 additions & 1 deletion .stylelintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ rules:
- true
- ignorePseudoElements:
ng-deep
scss/at-rule-no-unknown: true
scss/at-rule-no-unknown:
- true
- ignoreAtRules:
- provide
- require
# No config allows this:
#
# ```scss
Expand Down
193 changes: 193 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
[![Version](https://img.shields.io/npm/v/material-components-web.svg)](https://www.npmjs.com/package/material-components-web)
[![Chat](https://img.shields.io/discord/259087343246508035.svg)](https://discord.gg/material-components)

Note:

This project is no longer actively maintained. While automated updates may
still occur, the team will not be prioritizing new features or bug fixes, and
those updates will be turned off in the future.

For Angular users, our friends at Angular Material moved away from this
library, and they expect that this may actually allow for faster iteration - see
their [blog post](https://blog.angular.dev/the-future-of-material-support-in-angular-7fa0662ecc4b)
for more information.

# Material Components for the web

Material Components for the web helps developers execute [Material Design](https://www.material.io).
Expand Down Expand Up @@ -47,7 +58,7 @@ Material Components for the web is the successor to [Material Design Lite](https
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
<!-- Instantiate single textfield component rendered in the document -->
<script>
mdc.textField.MDCTextField.attachTo(document.querySelector('.mdc-text-field'));
mdc.textField.MDCTextField.attachTo(document.querySelector<HTMLElement>('.mdc-text-field'));
</script>
```

Expand Down Expand Up @@ -96,7 +107,7 @@ Import `MDCTextField` module to instantiate text field component.

```js
import {MDCTextField} from '@material/textfield';
const textField = new MDCTextField(document.querySelector('.mdc-text-field'));
const textField = new MDCTextField(document.querySelector<HTMLElement>('.mdc-text-field'));
```

This'll initialize text field component on a single `.mdc-text-field` element.
Expand Down
6 changes: 3 additions & 3 deletions docs/authoring-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class RedblueTogglePrototype {
toggle(isToggled = undefined) {
const wasToggledExplicitlySet = isToggled === Boolean(isToggled);
const toggled = wasToggledExplicitlySet ? isToggled : !this.toggled;
const toggleColorEl = this.root.querySelector('.redblue-toggle__color');
const toggleColorEl = this.root.querySelector<HTMLElement>('.redblue-toggle__color');
let toggleColor;

this.root.setAttribute('aria-pressed', String(toggled));
Expand All @@ -142,7 +142,7 @@ class RedblueTogglePrototype {
}
}

new RedblueTogglePrototype(document.querySelector('.redblue-toggle'));
new RedblueTogglePrototype(document.querySelector<HTMLElement>('.redblue-toggle'));
```

Note how the JS Component does not reference MDC Web in any way, nor does it have any notion
Expand Down Expand Up @@ -335,7 +335,7 @@ class RedblueToggle extends MDCComponent {
addClass: className => this.root.classList.add(className),
removeClass: className => this.root.classList.remove(className),
setToggleColorTextContent: textContent => {
this.root.querySelector('.redblue-toggle__color').textContent = textContent;
this.root.querySelector<HTMLElement>('.redblue-toggle__color').textContent = textContent;
},
});
}
Expand Down
4 changes: 2 additions & 2 deletions docs/docsite-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Then include MDC markup...
...and instantiate JavaScript:

```js
mdc.ripple.MDCRipple.attachTo(document.querySelector('.foo-button'));
mdc.ripple.MDCRipple.attachTo(document.querySelector<HTMLElement>('.foo-button'));
```

However, it is highly recommended to install Material Components for the web via npm and consume its ES Modules and Sass directly. This is outlined in the steps below.
Expand Down Expand Up @@ -105,7 +105,7 @@ However, it is highly recommended to install Material Components for the web via

```js
import {MDCRipple} from '@material/ripple';
const ripple = new MDCRipple(document.querySelector('.foo-button'));
const ripple = new MDCRipple(document.querySelector<HTMLElement>('.foo-button'));
```

This will produce a Material Design ripple on the button when it is pressed!
Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Then include MDC markup...
...and instantiate JavaScript:

```js
mdc.ripple.MDCRipple.attachTo(document.querySelector('.foo-button'));
mdc.ripple.MDCRipple.attachTo(document.querySelector<HTMLElement>('.foo-button'));
```

## Installing Locally
Expand Down Expand Up @@ -392,7 +392,7 @@ We need to tell our `app.js` to import the ES2015 file for `@material/ripple`. W

```js
import {MDCRipple} from '@material/ripple/index';
const ripple = new MDCRipple(document.querySelector('.foo-button'));
const ripple = new MDCRipple(document.querySelector<HTMLElement>('.foo-button'));
```

> Note: We explicitly reference `index` within each MDC Web package in order to import the ES2015 source directly.
Expand Down
14 changes: 1 addition & 13 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,10 @@ const HEADLESS_LAUNCHERS = {
base: 'ChromeHeadless',
flags: ['--no-sandbox'],
},
'FirefoxHeadless': {
base: 'Firefox',
flags: ['-headless'],
},
};
const SAUCE_LAUNCHERS = {
'sl-ie': {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '11',
platform: 'Windows 10',
},
};
const USE_SAUCE = Boolean(process.env.SAUCE_USERNAME && process.env.SAUCE_ACCESS_KEY);
const PROGRESS = USE_SAUCE ? 'dots' : 'progress';
const customLaunchers = Object.assign({}, USE_SAUCE ? SAUCE_LAUNCHERS : {}, HEADLESS_LAUNCHERS);
const customLaunchers = Object.assign({}, HEADLESS_LAUNCHERS);
const browsers = USE_SAUCE ? Object.keys(customLaunchers) : ['Chrome'];

// Files to include in Jasmine tests.
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "12.0.0",
"version": "14.0.0",
"command": {
"version": {
"conventionalCommits": true
Expand Down
27 changes: 6 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"eslint": "^5.1.0",
"eslint-config-google": "^0.11.0",
"eslint-plugin-mocha": "^5.0.0",
"fibers": "^4.0.2",
"fs-extra": "^7.0.0",
"fs-readdir-recursive": "^1.1.0",
"glob": "^7.1.6",
Expand All @@ -83,7 +82,7 @@
"prettier": "^2.2.1",
"recast": "^0.17.3",
"resolve": "^1.3.2",
"sass": "^1.34.1",
"sass": "^1.41.1",
"sass-loader": "^7.1.0",
"semver": "^5.3.0",
"stylelint": "^13.8.0",
Expand All @@ -97,7 +96,7 @@
"ts-node": "^8.0.3",
"tslib": "^2.1.0",
"tslint": "^5.12.0",
"typescript": "^4.2.2",
"typescript": "^4.3.5",
"uglifyjs-webpack-plugin": "^2.1.3",
"webpack": "^4.34.0",
"webpack-cli": "^3.3.11"
Expand Down
5 changes: 2 additions & 3 deletions packages/material-components-web/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* THE SOFTWARE.
*/

import autoInit, {MDCAttachable} from '@material/auto-init/index';
import autoInit from '@material/auto-init/index';
import * as banner from '@material/banner/index';
import * as base from '@material/base/index';
import * as checkbox from '@material/checkbox/index';
Expand Down Expand Up @@ -79,8 +79,7 @@ autoInit.register('MDCSegmentedButton', segmentedButton.MDCSegmentedButton);
autoInit.register('MDCSelect', select.MDCSelect);
autoInit.register('MDCSlider', slider.MDCSlider);
autoInit.register('MDCSnackbar', snackbar.MDCSnackbar);
autoInit.register(
'MDCSwitch', switchControl.MDCSwitch as unknown as MDCAttachable);
autoInit.register('MDCSwitch', switchControl.MDCSwitch);
autoInit.register('MDCTabBar', tabBar.MDCTabBar);
autoInit.register('MDCTextField', textField.MDCTextField);
autoInit.register('MDCTooltip', tooltip.MDCTooltip);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
@use '@material/segmented-button/styles' as segmented-button-styles;
@use '@material/slider/styles' as slider-styles;
@use '@material/snackbar/mdc-snackbar';
@use '@material/switch/deprecated/mdc-switch';
@use '@material/switch/styles';
@use '@material/tab/mdc-tab';
@use '@material/tab-bar/mdc-tab-bar';
@use '@material/tab-indicator/mdc-tab-indicator';
Expand Down
Loading