This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat(slider): Add color theme mixins; default to secondary; remove --off
#1544
Merged
Merged
Changes from 25 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
5f13367
WIP: Add color theme mixins; default to secondary color
acdvorak 77c524b
WIP: Improve selector readability
acdvorak 6ea9f63
WIP: Colocate all state-dependent color styles
acdvorak 87c46c6
WIP: Colocate disabled color styles
acdvorak 8ad26d1
WIP: Remove unnecessary !important
acdvorak 7d20c68
WIP: Create mixin for off/disabled thumb fill/stroke
acdvorak 5d25bb2
WIP: Add TODOs to rename mixins
acdvorak e798a29
WIP: Rename mixins to match M2 spec
acdvorak d2f6514
WIP: Add example of custom color to demo page
acdvorak a6b08cc
feat(theme): Add new tone mixins and deprecate old one
acdvorak 638a5ed
fix(slider): Don't hide focus ring on discrete sliders
acdvorak ca11cf0
WIP: Ensure that disabled state always overrides custom colors
acdvorak f76e929
WIP: M2-ify colors (except `--off`)
acdvorak 6bb2c2f
WIP: Remove `--off` modifier class
acdvorak c51a0ce
WIP: Auto-generate rail/tick color; remove those public mixins & colo…
acdvorak 05039ba
WIP: Combine/simplify mixins
acdvorak 3f68cd2
WIP: Add accessible mixin for value pin color
acdvorak 9a82f6a
WIP: Lower max value in demo page to make tick marks more visible
acdvorak 30c4497
Merge branch 'master' into feat/theme/slider-mixins
acdvorak 2acab33
WIP: Remove unused variables
acdvorak 43ce89c
WIP: Reorder mixins
acdvorak 0f1b301
WIP: Add mdc-slider-color-accessible mixin
acdvorak a4b25d8
WIP: Simplify thumb stroke cutout
acdvorak 53582d2
WIP: Use different colors for each element in custom demo
acdvorak 805d5a3
WIP: Fix preexisting demo bug
acdvorak 1e95d4a
WIP: Improve styling of demo page
acdvorak 2951603
WIP: Increase max value of demo params from 50 to 100
acdvorak cd985cb
Merge branch 'master' into feat/theme/slider-mixins
acdvorak de882ef
WIP: Replace `-impl_` with `_` in private mixin names
acdvorak e7188f3
WIP: Use `:not()` selectors instead of `!important`
acdvorak 8af9b25
WIP: Explicitly import theme dependencies
acdvorak 64e2dfd
WIP: Support theme props as color values in mixin
acdvorak 48fac78
WIP: Use high-level color mixin instead of individual mixins
acdvorak 987f595
WIP: Add mixins to customize rail and tick mark color
acdvorak cdcbf44
WIP: Add mixin param to docs
acdvorak dc48efe
Merge branch 'master' into feat/theme/slider-mixins
acdvorak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// Copyright 2017 Google Inc. All Rights Reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
@keyframes mdc-slider-emphasize { | ||
0% { | ||
animation-timing-function: ease-out; | ||
} | ||
|
||
50% { | ||
animation-timing-function: ease-in; | ||
transform: scale(.85); | ||
} | ||
|
||
100% { | ||
transform: scale(.571); | ||
} | ||
} |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh jeez THANK YOU 😌 this glitch was annoying.