hathitrust / firebird-common

Other
0 stars 0 forks source link

#92: focus indicator bug fixes #97

Closed carylwyatt closed 3 months ago

carylwyatt commented 3 months ago

website logo focus indicator

The navbar logo had a visible focus indicator in the apps but not on the website. The element received focus without issue, but there was no visible focus indicator. I changed the display to block instead of inline and that fixed the issue.

"active" button focus indicator style

I missed that we use the "active" class on some buttons (the ones that came up during testing are in page turner, but they may be elsewhere, too!). "active" buttons had their own focus styles from bootstrap, so I overrode those.

remove animations on focus

The animations that are triggered on focus are not consistent and are a little distracting. I set transition: unset in all of our focus state styles to remove animations on focus.

to test

netlify[bot] commented 3 months ago

Deploy Preview for hathitrust-firebird-common ready!

Name Link
Latest commit 7f9497f6f9f24de5db2ae193c7a1e76a0f6c9c9d
Latest deploy log https://app.netlify.com/sites/hathitrust-firebird-common/deploys/66a3cf4b5d16db000898445b
Deploy Preview https://deploy-preview-97--hathitrust-firebird-common.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

carylwyatt commented 3 months ago

@angelinanz @giramesh These are now staged on https://test.www.hathitrust.org/ and ready for testing before deploying on Monday. I also updated page turner so these styles should also apply there. Thanks!

giramesh commented 3 months ago

can confirm that the focus indicator on website logo and active buttons states are visible, and i do not see animation (if i did, it was subtle) - tested on chrome, firefox, edge, safari!