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

Standardize date range facet placeholders #164

Conversation

DarrenJiang114
Copy link

Standardize capitalization on seeker date range facets.

@@ -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.

Copy link
Author

Choose a reason for hiding this comment

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

Damn I totally messed up the syncing of my forked repo. These changes aren't supposed to be in this PR. These were supposed to be part of: #160, where we wanted to make this both bootstrap 4 and 5 compatible by adding hooks. I don't think we need this PR to standardize date range format anymore, since I found a more viable solution in Bioshare itself.

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