Add flair to snackbar #1313
No reviewers
Labels
No labels
accessibility
app-parity
area: creator
area: daemon
area: design
area: devops
area: discovery
area: docs
area: installer
area: internal
area: livestream
area: performance
area: proposal
area: reposts
area: rewards
area: search
area: security
area: subscriptions
area: sync
area: ux
area: viewer
area: wallet
BEAMER
channel
comments
community PR
consider soon
core team
css
dependencies
electron
Epic
feature request
first-timers-only
good first issue
hacktoberfest
help wanted
hub-dependent
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
merge when green
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
notifications
odysee
on hold
playlists
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
recsys
redesign
regression
resilience
sdk dependent
Tom's Wishlist
trending
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-desktop#1313
Loading…
Reference in a new issue
No description provided.
Delete branch "add-flair-to-snackbar"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is for #1279.
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.
Nice. I will check out the code more later but the picture looks good. We are using
flow
instead ofprop-types
so your types should be moved to that.This should use a text color variable. Probably just
--color-text
or whatever we call it.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
This should just be a color variable. It's just the same as the color you have above so maybe this isn't needed?
@seanyesmunt I updated the code as suggested in the comments.
There's a snackbar specific variable now.
Those were added.
True, this was not needed at all.
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.PR changed per review. Also,
snack-bar__action
was moved to the top level along withsnack-bar__message
.Awesome! Just add a changelog commit and I will merge
Changelog updated.
Thanks @miikkatu! Have your contribution email, will follow up soon!