feat: improve project submisions dark mode #4324
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Because
When visiting a full project submissions page the UX of dark mode was worse of light mode potentially due to some rules not applying.
This PR
Back to lesson
link at the top of the page.Prev
/Next
more visually distinct and intuitively disabled depending on the circumstances.Issue
Closes #4307
Additional Information
This is directly pertaining to the PR, rest is about the process more than anything else:
I duplicated the rules like
text-gold-500
because of specificity, otherwise it wouldn't work. Looks weird, feels weird but works just fine! Not sure if those&:active
rules are even needed - it is only seen for a split second on slow network after clicking a link, right?According to the Contributing Guide you're supposed to run
rubocop
and notbundle exec rubocop
- same withrspec
. Is this intentional? I have offences withrubocop
, all to do withCapybara
but when I dobundle exec rubocop
I don't see any issues. Neither the mainrubocop.yml
nor the one inspec/
have any rules that seem to affectCapybara
. It seems like my global rubocop-capybara is2.20.0
and the one in the Gemfile is2.19.0
and this is the reason for mismatch. I have already submitted a PR to removeyarn test
from the guide - it feels like every time a gem is used, it should be used withbundle exec
. Perhaps this should also be the case withrails
- every instance should bebin/rails
instead.Also, I have no idea if it is my setup or what, but there was plenty of
bin/rails assets:clobber
andbin/rails css:clobber
for me before I could get webpack to actually reflect changes in the file on refresh. At some point I was thinking the changes should not be made inpagy.css
!Pull Request Requirements
keyword: brief description of change
format, using one of the following keywords:Feature
- adds new or amends existing user-facing behaviorChore
- changes that have no user-facing value, refactors, dependency bumps, etcFix
- bug fixesBecause
section summarizes the reason for this PRThis PR
section has a bullet point list describing the changes in this PRIssue
section