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

Customisation effort: toast #1510

Merged
merged 17 commits into from
Aug 29, 2023
Merged

Customisation effort: toast #1510

merged 17 commits into from
Aug 29, 2023

Conversation

gretanausedaite
Copy link
Contributor

@gretanausedaite gretanausedaite commented Aug 22, 2023

Changes

  • add contentProps

Testing

Unit tests added

Docs

Changeset

@gretanausedaite gretanausedaite self-assigned this Aug 22, 2023
@gretanausedaite gretanausedaite added this to the React 3.0 milestone Aug 22, 2023
@gretanausedaite gretanausedaite marked this pull request as ready for review August 23, 2023 12:13
@gretanausedaite gretanausedaite requested review from a team as code owners August 23, 2023 12:13
@gretanausedaite gretanausedaite requested review from mayank99 and r100-stack and removed request for a team August 23, 2023 12:13
@@ -185,3 +185,26 @@ it('should close temporary toast after 7s', () => {

jest.useRealTimers();
});

it('should pass content props correctly', () => {
Copy link
Member

Choose a reason for hiding this comment

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

nit: Since earlier, we were using CommonProps (id, className, style), it is good to test if className and style are applied correctly without CommonProps, like you have it now.

But, you could also test if some other props apart from those three are passed correctly. E.g., onClick.

This is just an optional suggestion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Leaving it as is for now.

@gretanausedaite gretanausedaite added this pull request to the merge queue Aug 29, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 29, 2023
@gretanausedaite gretanausedaite added this pull request to the merge queue Aug 29, 2023
Merged via the queue into dev with commit bee7eaf Aug 29, 2023
@gretanausedaite gretanausedaite deleted the greta/toast-customization branch August 29, 2023 13:24
@imodeljs-admin imodeljs-admin mentioned this pull request Oct 23, 2023
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