Skip to content

fix(list): follow MD spec for avatar/thumbnail right margin in lists - #17177

Closed
trazek wants to merge 5 commits into
ionic-team:masterfrom
trazek:bugfix-ion-avatar
Closed

trazek wants to merge 5 commits into
ionic-team:masterfrom
trazek:bugfix-ion-avatar

Conversation

@trazek

@trazek trazek commented Jan 20, 2019

Copy link
Copy Markdown
Contributor

Short description of what this resolves:

Fixed issues raised here: #16997
Currently, the right margin is 32px for avatars in lists and should be 16px, per MD spec

Changes proposed in this pull request:

  • Add explicit rules for icons, avatars and thumbnails within lists

Ionic Version: 4.0.0-rc.2

Fixes: #16997

@ionitron-bot ionitron-bot Bot added the package: core @ionic/core package label Jan 20, 2019
@brandyscarney

Copy link
Copy Markdown
Member

Thank you for the PR, but the correct CSS is there: https://github.com/ionic-team/ionic/blob/461fcc7ddbba46e6fad51732b90a9cfd25f577d2/core/src/components/item/item.md.scss#L175-L188

I've started a PR for this here: #17065

It just needs to be updated to fix some of the styles with interactive. 🙂

@trazek

trazek commented Jan 21, 2019

Copy link
Copy Markdown
Contributor Author

Thank you for the PR, but the correct CSS is there:

ionic/core/src/components/item/item.md.scss

Lines 175 to 188 in 461fcc7

::slotted(ion-avatar),
::slotted(ion-thumbnail) {
@include margin($item-md-media-slot-margin-top, $item-md-media-slot-margin-end, $item-md-media-slot-margin-bottom, $item-md-media-slot-margin-start);
}

::slotted(ion-avatar[slot="start"]),
::slotted(ion-thumbnail[slot="start"]) {
@include margin-horizontal($item-md-media-start-slot-margin-start, $item-md-media-start-slot-margin-end);
}

::slotted(ion-avatar[slot="end"]),
::slotted(ion-thumbnail[slot="end"]) {
@include margin-horizontal($item-md-media-end-slot-margin-start, $item-md-media-end-slot-margin-end);
}
I've started a PR for this here: #17065

It just needs to be updated to fix some of the styles with interactive. 🙂

I see. Well if there is anything I can do to help with that, let me know! Thanks

@trazek trazek closed this Jan 21, 2019
@trazek
trazek deleted the bugfix-ion-avatar branch January 21, 2019 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants