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
And default value of its state (enabled/disabled) is equal to computed input-value of its nearest parent.
But develop can overwrite it and provide explicit input-prop to any nested skeleton.
Case 2. Replace legacy .tui-skeleton_light class with tuiMode-directive Before:
Case 3. Is .tui-skeleton_text actually required ?
Investigate should developer always mark all text-containers (a.k.a previous class .tui-skeleton_text).
Or we could do it automatically ?
For example, investigate if :after-element could always be non-breaking space
Current implementation
It global class
.tui-skeleton
with modifiers.Learn more: https://taiga-ui.dev/skeleton
Problems:
New proposed API
Introduce new
TuiSkeletonDirective
.It uses
tuiWithStyles
inside to add:before
/:after
pseudo-elements.It uses power of Dependency Injection.
Case 1. Configure all nested skeletons from the root element
All
TuiSkeletonDirective
injects itself insideAnd default value of its state (enabled/disabled) is equal to computed input-value of its nearest parent.
But develop can overwrite it and provide explicit input-prop to any nested skeleton.
Case 2. Replace legacy
.tui-skeleton_light
class withtuiMode
-directiveBefore:
After:
Case 3. Is
.tui-skeleton_text
actually required ?Investigate should developer always mark all text-containers (a.k.a previous class
.tui-skeleton_text
).Or we could do it automatically ?
For example, investigate if
:after
-element could always be non-breaking spacetaiga-ui/projects/styles/markup/tui-skeleton.less
Lines 35 to 37 in a276f7c
New animation for switching between skeleton and animation
Cross-fade animation. Smoothly change of
opacity
on swithching.Content dissappers / appears smoothly.
Skeleton appears/dissappers smoothly.
The text was updated successfully, but these errors were encountered: