Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Conversation

@devversion
Copy link
Contributor

@devversion devversion commented Apr 17, 2021

fix(list): density configuration mixins do not account for leading avatars

Currently when someone uses the MDC list w/ evolution styles, it's possible to generate secondary
styles with a different density scale. This can be achieved by using the following mixins:
one-line-item-density, two-line-item-density and three-line-item-density.

These mixins currently do not account for leading avatars, unlike they do for icons, checkboxes,
switches, radio's, images and videos. This commit adds code fo leading avatars.

refactor(list): expose evolution base mixins
In Angular Material we have several components that are based on simple, single-line lists.
Currently if we were to go through the without-ripple mixin, we would end up with a lot of
unused styles, because all we care about are the base structural styles, colors and typography.

These changes make the list-base and item-base mixins public so that we have more granular
control over the included styles.

@google-cla google-cla bot added the cla: yes label Apr 17, 2021
@devversion
Copy link
Contributor Author

I've also incorporated @crisbeto's changes to expose the evolution base mixins. The changes he made have been accidentally reverted with ab99b80 as it seems.

Copy link

@brandondiamond brandondiamond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks great -- let's remove the trailing-padding commit from this PR for now. After that, LGTM to merge!

…atars

Currently when someone uses the MDC list w/ evolution styles, it's possible to generate secondary
styles with a different density scale. This can be achieved by using the following mixins:

* `one-line-item-density`
* `two-line-item-density`
* `three-line-item-density`

These mixins currently do not account for leading avatars, unlike they do for icons, checkboxes,
switches, radio's, images and videos. This commit adds code fo leading avatars.
@devversion
Copy link
Contributor Author

@brandondiamond I've rebased the PR. Should be ready for merge.

In Angular Material we have several components that are based on simple, single-line lists. Currently if we were to go through the `without-ripple` mixin, we would end up with a lot of unused styles, because all we care about are the base structural styles, colors and typography.

These changes make the `list-base` and `item-base` mixins public so that we have more granular control over the included styles.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants