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

fix Skeleton browser applied padding #15421

Merged
merged 1 commit into from Mar 15, 2019
Merged

fix Skeleton browser applied padding #15421

merged 1 commit into from Mar 15, 2019

Conversation

Maktel
Copy link
Contributor

@Maktel Maktel commented Mar 14, 2019

Fix to issue #15413, caused by padding-inline-start rule in browser default styles

First of all, thank you for your contribution! πŸ˜„

New feature please send pull request to feature branch, and rest to master branch.
Pull request will be merged after one of collaborators approve.
Please makes sure that these form are filled before submitting your pull request, thank you!

[δΈ­ζ–‡η‰ˆζ¨‘ζΏ / Chinese template]

πŸ€” This is a ...

  • New feature
  • Bug fix
  • Site / document update
  • Component style update
  • TypeScript definition update
  • Refactoring
  • Code style optimization
  • Branch merge
  • Other (about what?)

πŸ‘» What's the background?

Major browsers like Chrome or Firefox in its default stylesheets include rule for ul element with padding-inline-start: 40px, that breaks styling of Skeleton component.

πŸ’‘ Solution

Override browser styles by resetting all paddings on Skeleton's unordered list element.

πŸ“ Changelog description

Describe changes from userside, and list all potential break changes or other risks.

I see no risks.

β˜‘οΈ Self Check before Merge

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

Fix to issue #15413, caused by `padding-inline-start` rule in browser default styles
@netlify
Copy link

netlify bot commented Mar 14, 2019

Deploy preview for ant-design ready!

Built with commit 7b2c878

https://deploy-preview-15421--ant-design.netlify.com

@codecov
Copy link

codecov bot commented Mar 14, 2019

Codecov Report

Merging #15421 into master will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15421      +/-   ##
==========================================
+ Coverage   94.19%   94.22%   +0.03%     
==========================================
  Files         250      250              
  Lines        6647     6647              
  Branches     1910     1944      +34     
==========================================
+ Hits         6261     6263       +2     
+ Misses        385      383       -2     
  Partials        1        1
Impacted Files Coverage Ξ”
components/upload/UploadList.tsx 96.33% <0%> (+1.83%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data
Powered by Codecov. Last update 4f0e6e6...7b2c878. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Mar 14, 2019

Codecov Report

Merging #15421 into master will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15421      +/-   ##
==========================================
+ Coverage   94.19%   94.22%   +0.03%     
==========================================
  Files         250      250              
  Lines        6647     6647              
  Branches     1910     1944      +34     
==========================================
+ Hits         6261     6263       +2     
+ Misses        385      383       -2     
  Partials        1        1
Impacted Files Coverage Ξ”
components/upload/UploadList.tsx 96.33% <0%> (+1.83%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data
Powered by Codecov. Last update 4f0e6e6...7b2c878. Read the comment docs.

@afc163 afc163 merged commit df47224 into ant-design:master Mar 15, 2019
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.

None yet

2 participants