Skip to content

feat(skeleton-text): adds animated, support for border-radius and height - #17612

Merged
brandyscarney merged 11 commits into
masterfrom
feat-skeleton-text-animated
Feb 27, 2019
Merged

brandyscarney merged 11 commits into
masterfrom
feat-skeleton-text-animated

Conversation

@brandyscarney

@brandyscarney brandyscarney commented Feb 26, 2019 •

Copy link
Copy Markdown
Member

❗️ dev build including this PR: 4.1.0-dev.201902272232.d66b12b ❗️

  • moves most of the CSS to the host element so that it's easier to customize the skeleton text
  • adds auto inherit for border-radius
  • moves height to 100% so it will naturally fill an avatar and thumbnail
  • adds animated property defaulted to false
  • removes mode specific styles as they're the same
  • changes background to an rgba making it easier to customize
  • still works outside of a container element
  • adds usage examples for javascript and angular
  • moves the width to the parent element making it easier to style
  • adds the ability to style the width using CSS
  • uses the global theme text color as the background if a custom background is not supplied before defaulting

master feat-skeleton-text-animated
localhost_3333_src_components_skeleton-text_test_basic iphone 6_7_8 2 localhost_3333_src_components_skeleton-text_test_basic iphone 6_7_8 3

- moves most of the CSS to the host element so that it's easier to customize the skeleton text
- adds auto inherit for border-radius
- moves the width to the parent element making it easier to style
- moves height to 100% so it will naturally fill an avatar and thumbnail
- adds animated property defaulted to `false`
- removes mode specific styles as they're the same
- changes background to an rgba making it easier to customize

this needs to be reviewed to make sure there are no breaking changes, plus an API decision needs to be made
@ionitron-bot ionitron-bot Bot added the package: core @ionic/core package label Feb 26, 2019
brandyscarney added a commit to ionic-team/ionic-docs that referenced this pull request Feb 26, 2019
- this has an ugly hack in it to make thumbnail take up the full height, it will need to be removed with this PR: ionic-team/ionic-framework#17612

references #463
- this allows skeleton text to just be normal sentences in a content
- only apply height 100% if inside of media (this is so that it will work with our shadow elements, otherwise it will automatically inherit)
- allows customization of height using line-height & margin
- removes the 100% default from the width prop
- sets 100% via CSS so it still defaults to 100% width
- allows the element width to be styled using CSS classes or inline styles
@brandyscarney
brandyscarney marked this pull request as ready for review February 27, 2019 21:07
@brandyscarney
brandyscarney merged commit d66b12b into master Feb 27, 2019
@brandyscarney
brandyscarney deleted the feat-skeleton-text-animated branch February 27, 2019 22:27
@brandyscarney

Copy link
Copy Markdown
Member Author

Published a dev build with this if anyone wants to try it out early: 4.1.0-dev.201902272232.d66b12b

@manishrajmishra

manishrajmishra commented Dec 30, 2021 •

Copy link
Copy Markdown

Is there any way so we can change the degree of inclination of loading effect from vertical left to right to some degree left to right ?

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