Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

feat(toast): add highlight class method + improved docs design + align demo with specs #7246

Closed
wants to merge 1 commit into from

Conversation

devversion
Copy link
Member

BREAKING CHANGE: Toasts now use accent color by default for a highlighted action button.

  • Add highlightClass method to toast (very useful! - and won't break anything)
  • Improved the docs design for the possible methods for the #simple method.
  • Changed demo to align with specs, No Dismiss buttons.
  • Highlight Color should use by default the accent color.

@topherfangio As discussed changed the demo and the default highlight color.

  • So about the highlightClass, we didn't discuss that, but it seems very useful, when aligning the toast to the official specs.

Little preview of the new docs changes

New Docs

Preview of the old doc design

Old

I think the new design looks much more clearer and also looks better with the new highlightClass method.

Fixes #6607

&.md-accent {
color: '{{accent-A200}}';
// By default the toast should use the accent color as the primary highlight color
color: '{{accent-A200}}';
Copy link
Contributor

Choose a reason for hiding this comment

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

@devversion This is a breaking change since we are changing the default from primary to accent. I believe it is a correct breaking change, but we need to make sure that we note it in the commit message (and PR description) so that users will know. Can you update the commit message accordingly?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank's for remembering, just updated :)

…n demo with specs

BREAKING CHANGE: Toasts now use accent color by default for a highlighted action button.

- Add `highlightClass` method to toast (very useful! - and won't break anything)
- Improved the docs design for the possible methods for the #simple method.
- Changed demo to align with specs, No Dismiss buttons.
- Highlight Color should use by default the accent color.

Fixes angular#6607
@topherfangio topherfangio added needs: review This PR is waiting on review from the team and removed needs: work labels Feb 23, 2016
@ThomasBurleson ThomasBurleson removed the needs: review This PR is waiting on review from the team label Feb 26, 2016
@ThomasBurleson ThomasBurleson modified the milestones: 1.0.6, 1.1.0 Feb 26, 2016
@devversion devversion deleted the fix/toast-align-specs branch April 19, 2016 19:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants