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

feat(banner): additional props for banner localisation #103

Merged
merged 6 commits into from
Feb 6, 2020

Conversation

sharath-sriram
Copy link
Contributor

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.

* @public
*/
@defaultProp
systemAlerts = 'System Alerts';
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When there are multiple banners, they are stacked under a "+ [x] more" button. On clicking the button, we get a list of the banners under the title "System Alerts". This is just a prop to customise that title. :)

Screenshot 2020-02-05 at 3 55 05 PM

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@shibulijack-fd shibulijack-fd merged commit f816c32 into master Feb 6, 2020
@shibulijack-fd shibulijack-fd deleted the banner-localisation branch February 6, 2020 05:25
shibulijack-fd pushed a commit that referenced this pull request Feb 6, 2020
* 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
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.

3 participants