Podcast Player: Clean-up styles & fix few remaining issues#15512
Conversation
|
Caution: This PR has changes that must be merged to WordPress.com |
|
Currently, on front-end, the Player doesn’t render cover art, description and doesn’t pick up custom colors. This is all going to be fixed when #15515 lands 🙌 |
- Create link class to be sure all links look the same, - Make all links look the same, - Use correct default color for description instead of "$dark-gray-500", - Clean up and make colors styles more consistent and easy to follow
Varia also uses the `has-background` class which bumps its selectors specificity unintendedly. This makes our anchor styles more specific.
bd4893b to
dbfb2d6
Compare
|
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: May 5, 2020. |
Should not be the same as the floating tooltip
| */ } | ||
| { !! ( showEpisodeDescription && track && track.description ) && ( | ||
| <div | ||
| <p |
There was a problem hiding this comment.
Good catch to change this to a <p>. Testing looks good!
| $gutter-s: 10px; | ||
| $gutter-m: 15px; | ||
| $gutter-l: 24px; |
There was a problem hiding this comment.
Glad this change worked out nicely!
| } | ||
| } | ||
|
|
||
| a.jetpack-podcast-player__link { |
There was a problem hiding this comment.
I like how you consolidated this for the title and track links into this class.
|
r206420-wpcom |
Built on top of #15504 as a part of completing the remaining Podcast Player improvements. My main goal was to go through styles.scss and clean it up a bit to minimize technical debt. On the way, I found a few small bugs and decided not to create separate issues for them as they kind of fixed themselves while cleaning up the code :)
Changes proposed in this Pull Request:
Maintenance:
$gutter-s/m/lvars,Bugfixes:
Links have the Secondary color initially and Primary when hovered (except for an active Track, which has Primary color at all times). Previously that was true only when default colors were applied. Now it's true also for any custom colors thanks to progressive enhancement with the CSS vars. Note that therefore hover colors are not supported in, i.e. IE11.
$dark-gray-300(Secondary) color for episode description text instead of$dark-gray-500.One enhancement:
Testing instructions:
#6c7781),Demo GIF:
IE11 screenshots (same for editor and front-end):
No-JS screenshot (front-end):
Proposed changelog entry for your changes: