Skip to content
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

added sr_class instance var for bootstrap compatibility #160

Open
wants to merge 2 commits into
base: 7.0
Choose a base branch
from

Conversation

DarrenJiang114
Copy link

Added sr_class instance variable to for Bootstrap 4/5 compatibility. Squish issue: https://squishlist.com/ims/bioshare/3525/?home

@@ -66,6 +66,7 @@ def __init__(self, field, label=None, sort=None, value_format=None, template=Non
self.export = export
self.highlight = highlight
self.field_definition = field_definition
self.sr_class = 'sr-only'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sr-only is for Bootstrap 4. visually-hidden is for Bootstrap 5.

https://getbootstrap.com/docs/5.3/migration/#:~:text=_visually%2Dhidden.scss-,Renamed%20.sr%2Donly,-and%20.sr%2Donly

That said, I'm not sure how seeker should handle Bootstrap constructs. Bootstrap is not a dependency, though we do link to a Bootstrap 3 CDN in the seeker.html template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants