Skip to content
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

Fixes #490: Removes padding-related directives for .delete nested selectors #549

Closed
wants to merge 1 commit into from

Conversation

robin900
Copy link
Contributor

@robin900 robin900 commented Mar 8, 2017

padding is inherited by delete selectors inside components and elements that need their own padding directives.
The inherited padding for nested .delete cause no problems for
desktop browsers, because their user agent stylesheets have
overriding directives for padding for the relevant , etc.
But on iOS Safari there are no such directives.

Fixes #490.

Proposed solution

Fixes weird delete element appearances (elongated from top-left to bottom-right) when delete element inside tag, notification, or message.

Tradeoffs

I don't know. I don't see any padding directives that are relevant for .delete elements, so I thought zeroing out the padding directives was the best way forward.

Testing Done

Solution confirmed via xCode iOS Safari simulator; no regression on macOS Chrome desktop browser.

components and elements that needs their own padding directives.
The inherited padding for nested .delete caused no problems for
desktop browsers, because their user agent stylesheets have
overriding directives for padding for the relevant <button>, etc.
But on iOS Safari there are no such directives.

Fixes jgthms#490.
@jgthms
Copy link
Owner

jgthms commented Mar 17, 2017

I'm not sure in which case the .delete element inherits the padding, since it's usually a simple <a> or <button>?

In any case, the reset should be set on .delete itself, not on each instance of its use.

@aareyes00
Copy link

Used instead of tag to fix on ipad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

V0.3.1 - Close Button Is Not Displayed Correctly in IOS Safari
3 participants