-
Notifications
You must be signed in to change notification settings - Fork 6.8k
docs(material/theming): rewrite elevation guide #22467
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
Conversation
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.
LGTM
guides/elevation.md
Outdated
`$zValue` is number from 0 to 24, representing the semantic elevation of the element, that controls | ||
the intensity of the box-shadow. You can use the `$color` and `$opacity` parameters to further | ||
customize the shadow appearance. Because an elevation shadow consists of multiple shadow components | ||
of varying opacities, the `$opacity` argument of the mixin acts as a factor by which to scale these |
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.
I think that we might want to not mention the opacity
parameter since the MDC mixins don't support it. They have something like an "opacity boost" where it adds some opacity to the base.
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.
Removed
c1f92cc
to
2f5cf9b
Compare
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.
lgtm
### Overridable elevation | ||
|
||
When authoring a component, you may want to specify a default elevation that the component consumer | ||
can override. You can accomplish this by using the `overridable-elevation` Sass mixin. This behaves |
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.
[stretch] adding an example of the override to show this overridable usecase?
I'm not strongly opinionated on this
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.
I'll pass on this since I think it's kind of niche and also laziness.
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.
Editing review completed; left a few suggestions.
Editing review complete; left a few suggestions.
…On Fri, Apr 16, 2021 at 4:22 PM Jeremy Elbourn ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In guides/elevation.md
<#22467 (comment)>:
> @@ -47,14 +44,23 @@ In order to use the mixin, you must import ***@***.***/material`:
}
```
-For convenience, you can use the `elevation-transition` mixin to add a transition when the
-elevation changes:
+### Overridable elevation
+
+When authoring a component, you may want to specify a default elevation that the component consumer
+can override. You can accomplish this by using the `overridable-elevation` Sass mixin. This behaves
I'll pass on this since I think it's kind of niche and also laziness.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#22467 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR4DPGX2SX6LXRGIFSJPAPLTJDBDTANCNFSM422I3GSQ>
.
--
*--Teri Glover--*
*Technical Editor*
|
This change updates the elevation guide to be more clear, concise, and complete. The changes include: * Drop content about the general concept of elevation, deferring that to the Material Design spec. * Document the `overridable-elevation` mixin * Mention that the elevation CSS classes are emitted by `core-theme`. * Switch to `@use`
2f5cf9b
to
d13274d
Compare
This change updates the elevation guide to be more clear, concise, and complete. The changes include: * Drop content about the general concept of elevation, deferring that to the Material Design spec. * Document the `overridable-elevation` mixin * Mention that the elevation CSS classes are emitted by `core-theme`. * Switch to `@use` (cherry picked from commit 3e4e6d0)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This change updates the elevation guide to be more clear, concise, and
complete. The changes include:
the Material Design spec.
overridable-elevation
mixincore-theme
.@use