-
Notifications
You must be signed in to change notification settings - Fork 12
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(banner): additional props for banner localisation #103
Conversation
* @public | ||
*/ | ||
@defaultProp | ||
systemAlerts = 'System Alerts'; |
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.
Ideally banners should follow conventions as danger
, warnings
, information
, and success
. Any reason why we call this API as systemAlerts
?
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.
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.
The title "System Alerts" itself seems to be a part of the design spec.
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.
Renamed the props now for clarity.
…to banner-localisation Renamed labels for clarity
* master: feat(banner): additional props for banner localisation (#103) chore: Lint workflow checks and cleanup (#102) fix: Changed Responsive design (#98) feat: Integrated Visual Regression with ember-backstop (#94) fix: Refactored Github action CI workflow (#96) Removed since (#95) fix(modal): modal patch for safari (#91) fix(nucleus): removed classic decorator dependency (#87) fix(icon): fixed failing tests (#89) [RELEASE] 0.3.0 (#79) # Conflicts: # packages/banner/package.json # packages/button/package.json # packages/inline-banner/package.json # packages/modal/package.json # packages/toast-message/package.json
Nucleus Banner has two hard-coded instances of text which need to be localised. This PR adds additional props(optional with defaults available) which can be used by the developer to incorporate internationalisation to their banner.