-
Notifications
You must be signed in to change notification settings - Fork 32
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
feat(spinner): Adding component - FRONT-3223 #2255
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- "size" (string) options: | ||
[ small, medium, large ] | ||
- "text" (string) (default: '') | ||
- "visible" (boolean) (default false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing "centered" and "overlay" parameters
options: [ small, medium, large ] | ||
- **"text"** (string) (default: '') | ||
- **"visible"** (boolean) (default: false) | ||
- **"centered"** (boolean) (default: true)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing "overlay" parameter
{% endif %} | ||
|
||
{% if _visible %} | ||
{% set _css_classes = _css_classes ~ ' ecl-spinner--active' %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as the parameter is called "visible", maybe we could use the same name for the class (".ecl-spinner--visible"). Same for the overlay
category: 'Content', | ||
}, | ||
}, | ||
variant: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when selecting negative spinner on storybook (in the controls), we should apply a background (similar to what has been done for the links), otherwise it is not visible (in primary story)
Or we just don't show this control
} | ||
} | ||
// stylelint-disable-next-line plugin/selector-bem-pattern | ||
.path { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we apply the namespace/bem pattern for this css class too?
…y into front-3223-spinner
…onent-library into front-3223-spinner
This is a twig implementation of a "spinner" component.
It is not clear how to make this usable in an application,
UPDATE:
After talking with Francesco it seems that this will ony be used as a example markup that needs to be copied into a drupal function, so not using any twig template.
Therefore the current approach seems potentially correct.