You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P4A relatively minor issue that is not relevant to core functionshelp wantedLabel noting an issue which the team is looking for contribution from the community to fix
Alright, two things: (1) the mat-divider, when used in a list, belongs inside the mat-list-item as shown in the demo-app here.
But more importantly, (2) mat-divider in inset mode in lists right now exclusively works with matListAvatar, that's why the sizing is a little weird. I'll try and piece together a fix that makes this more dynamic, but if you have a solution already in mind, I'd love to hear it.
The last bit is that your piece about the behavior reverting in cards is because the mat-card stylings are erroneously being applied to the divider when it should only have mat-list stylings. I'll attempt to patch this as well in a separate PR.
(1) Saddly I almost exclusively look for examples in material.io and atm there isn't any example that showcases the use of mat-divider to separate list items (the existent one is display separation of subgroups). Maybe a new one that shows the use case you just explained could be added? Maybe the same two showcased in materialjs for md-divider?
(2) Yup, styling is correctly applied to a .mat-divider-inset contained in a mat-list-item with matListAvatar (but not inside a .mat-card).
@jotatoledo Thank you very much for your CSS solution. It's been incorporated into PR #9242, which offers the dynamic solution I was talking about (just in case icons/avatars are not the only precursors in the future). Once this is merged, I will look into adding some examples for material.angular.io (probably what you described, copying the examples from AngularJS Material)
I think the reason there isn't a page on material.angular.io yet is because mat-divider hasn't been officially published yet, and won't be available until version 5.1 comes out. You can of course provide additional examples to this part of the repo (the one there right now is pretty simplistic).
Looks rlly good, glad I could help. Yeah, but as I mentioned before, it would be helpful to add those examples from materialjs into the list doc. For the moment I dont see the need of a dedicated section for mat-divider
P4A relatively minor issue that is not relevant to core functionshelp wantedLabel noting an issue which the team is looking for contribution from the community to fix
Activity
CaerusKaru commentedon Jan 4, 2018
Alright, two things: (1) the
mat-divider, when used in a list, belongs inside themat-list-itemas shown in the demo-app here.But more importantly, (2)
mat-dividerin inset mode in lists right now exclusively works withmatListAvatar, that's why the sizing is a little weird. I'll try and piece together a fix that makes this more dynamic, but if you have a solution already in mind, I'd love to hear it.The last bit is that your piece about the behavior reverting in cards is because the
mat-cardstylings are erroneously being applied to thedividerwhen it should only havemat-liststylings. I'll attempt to patch this as well in a separate PR.jotatoledo commentedon Jan 5, 2018
Hey @CaerusKaru thx for the quick reply!
(1) Saddly I almost exclusively look for examples in material.io and atm there isn't any example that showcases the use of
mat-dividerto separate list items (the existent one is display separation of subgroups). Maybe a new one that shows the use case you just explained could be added? Maybe the same two showcased in materialjs for md-divider?(2) Yup, styling is correctly applied to a
.mat-divider-insetcontained in amat-list-itemwithmatListAvatar(but not inside a.mat-card).A possible solution would be the following:
The
position:absoluteis required to override theposition:staticapplied when themat-divideris in a.mat-card.Ill try to take a look at the issue and come up with a PR
CaerusKaru commentedon Jan 5, 2018
@jotatoledo Thank you very much for your CSS solution. It's been incorporated into PR #9242, which offers the dynamic solution I was talking about (just in case icons/avatars are not the only precursors in the future). Once this is merged, I will look into adding some examples for material.angular.io (probably what you described, copying the examples from AngularJS Material)
CaerusKaru commentedon Jan 5, 2018
I think the reason there isn't a page on material.angular.io yet is because
mat-dividerhasn't been officially published yet, and won't be available until version 5.1 comes out. You can of course provide additional examples to this part of the repo (the one there right now is pretty simplistic).jotatoledo commentedon Jan 5, 2018
Looks rlly good, glad I could help. Yeah, but as I mentioned before, it would be helpful to add those examples from materialjs into the list doc. For the moment I dont see the need of a dedicated section for mat-divider
angular-automatic-lock-bot commentedon Sep 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.