Add flair to snackbar #1313

Merged
miikkatu merged 2 commits from add-flair-to-snackbar into master 2018-04-17 08:11:14 +02:00
miikkatu commented 2018-04-10 13:23:36 +02:00 (Migrated from github.com)

This is for #1279.

screen shot 2018-04-10 at 14 06 56

Unlike modal dialogs in the redesign, this is with a dark background to make it pop a bit more. Functionality remains the same as with the original snackbar.

The prop-types package was added as a dependency.

This is for #1279. <img width="786" alt="screen shot 2018-04-10 at 14 06 56" src="https://user-images.githubusercontent.com/16205520/38554270-a3e00986-3cca-11e8-8a1d-ceef26e053d6.png"> Unlike modal dialogs in the redesign, this is with a dark background to make it pop a bit more. Functionality remains the same as with the original snackbar. The prop-types package was added as a dependency.
neb-b commented 2018-04-12 19:37:02 +02:00 (Migrated from github.com)

Nice. I will check out the code more later but the picture looks good. We are using flow instead of prop-types so your types should be moved to that.

Nice. I will check out the code more later but the picture looks good. We are using `flow` instead of `prop-types` so your types should be moved to that.
neb-b (Migrated from github.com) requested changes 2018-04-12 19:43:44 +02:00
neb-b (Migrated from github.com) commented 2018-04-12 19:38:59 +02:00

This should use a text color variable. Probably just --color-text or whatever we call it.

This should use a text color variable. Probably just `--color-text` or whatever we call it.
neb-b (Migrated from github.com) commented 2018-04-12 19:42:34 +02:00

You should create a variable for this --snack-bar-bg --snack-bar-color

So we can change them for dark mode. Similar to how we do it with buttons:
https://github.com/lbryio/lbry-app/blob/master/src/renderer/scss/_vars.scss#L93

You should create a variable for this `--snack-bar-bg` `--snack-bar-color` So we can change them for dark mode. Similar to how we do it with buttons: https://github.com/lbryio/lbry-app/blob/master/src/renderer/scss/_vars.scss#L93
neb-b (Migrated from github.com) commented 2018-04-12 19:43:40 +02:00

This should just be a color variable. It's just the same as the color you have above so maybe this isn't needed?

This should just be a color variable. It's just the same as the color you have above so maybe this isn't needed?
miikkatu commented 2018-04-12 20:09:27 +02:00 (Migrated from github.com)

@seanyesmunt I updated the code as suggested in the comments.

@seanyesmunt I updated the code as suggested in the comments.
miikkatu (Migrated from github.com) reviewed 2018-04-12 20:10:06 +02:00
miikkatu (Migrated from github.com) commented 2018-04-12 20:10:06 +02:00

There's a snackbar specific variable now.

There's a snackbar specific variable now.
miikkatu (Migrated from github.com) reviewed 2018-04-12 20:10:20 +02:00
miikkatu (Migrated from github.com) commented 2018-04-12 20:10:19 +02:00

Those were added.

Those were added.
miikkatu (Migrated from github.com) reviewed 2018-04-12 20:10:35 +02:00
miikkatu (Migrated from github.com) commented 2018-04-12 20:10:35 +02:00

True, this was not needed at all.

True, this was not needed at all.
neb-b (Migrated from github.com) requested changes 2018-04-16 23:37:38 +02:00
neb-b (Migrated from github.com) commented 2018-04-16 23:37:30 +02:00

Looks good. The only thing I would do is change this to snack-bar__message and move it to the top level. Then I think it's ok to merge.

Looks good. The only thing I would do is change this to `snack-bar__message` and move it to the top level. Then I think it's ok to merge.
miikkatu commented 2018-04-17 07:25:57 +02:00 (Migrated from github.com)

PR changed per review. Also, snack-bar__action was moved to the top level along with snack-bar__message.

PR changed per review. Also, `snack-bar__action` was moved to the top level along with `snack-bar__message`.
neb-b commented 2018-04-17 07:28:56 +02:00 (Migrated from github.com)

Awesome! Just add a changelog commit and I will merge

Awesome! Just add a changelog commit and I will merge
miikkatu commented 2018-04-17 07:46:19 +02:00 (Migrated from github.com)

Changelog updated.

Changelog updated.
neb-b (Migrated from github.com) approved these changes 2018-04-17 08:11:03 +02:00
tzarebczan commented 2018-04-17 14:46:19 +02:00 (Migrated from github.com)

Thanks @miikkatu! Have your contribution email, will follow up soon!

Thanks @miikkatu! Have your contribution email, will follow up soon!
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#1313
No description provided.