-
Notifications
You must be signed in to change notification settings - Fork 4
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
Adds panel for NPS surveys #1335
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realize it's a bit unorthodox for me to review this as a contributor. We can loop Matt in if it would be useful to get fresh eyes on it.
The last two commits are small refactors to the SCSS. They were quick enough that it made sense just to push up the changes rather than comment. I'd suggest taking a quick look before merging to make sure everything makes sense sense. (It's been a long day, and I wouldn't trust my code at this juncture.)
The only tangible change to the stylesheet is moving the font color from #fff
to $white
, which is a very slight off-white. The brand also provides $white-t
if true white is what is needed here, but $white
did not present any contrast issues in WAVE.
Why are these changes being introduced: * UX has requested this to gather feedback from users Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/PW-102 How does this address that need: * Creates display panel that is configured via ENV to allow for making changes to content without redeploys of code Document any side effects to this change: * Added some newish sqlite files to gitignore
Stephanie and I paired today to fine-tune the design a bit. The goals of the session were to fix the padding, reduce the font size in large viewports, and ensure that the text didn't wrap beyond two lines in smaller viewports. We made the following changes: * Removes `copy-lead` and `box-content` classes. * Sets padding to `20px 10px`. * Sets font-size to `$fs-large` (20px) at viewport widths larger than our medium breakpoint, and `$fs-base` (16px) at smaller widths. * Explicitly sets `display: block`. (This rule is implied/inherited, but it felt useful to declare it because inline-block does weird things.) Other things we tried but decided not to do: * Put `display: block` and `text-wrap: nowrap` on the link in smaller viewports. This mostly looked good, but squeezed the spacing from the sides. * Leave the font size as `$fs-large` in smaller viewports. We were able to do this without wrapping by reducing the padding, but it was visually out of proportion. Co-authored-by: Stephanie Hartman <[email protected]>
c7968ba
to
42b63b1
Compare
Why are these changes being introduced:
Relevant ticket(s):
How does this address that need:
Document any side effects to this change:
Developer
our guide and
all issues introduced by these changes have been resolved or opened as new
issues (link to those issues in the Pull Request details above)
Code Reviewer
(not just this pull request message)
Requires database migrations?
NO
Includes new or updated dependencies?
NO