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

Set search bar border rounded class for number of configured search fields #3450

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

corylown
Copy link
Contributor

Fixes #3448

With one configured search field:

Before:
Screenshot 2024-11-21 at 8 35 24 AM

After:
Screenshot 2024-11-21 at 9 08 58 AM

def rounded_border_class
return 'rounded-0' if search_fields.length > 1

'rounded-left rounded-start'
Copy link
Member

Choose a reason for hiding this comment

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

Isn't rounded-left a bootstrap 4 class? The main branch no longer has support for Bootstrap 4.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is. I wasn't sure if main was still trying to support BS4. I'll change it. Thank you.

@corylown corylown force-pushed the 3448-search-box-border branch from 7e84d33 to 63b0fa4 Compare November 21, 2024 15:19
@jcoyne jcoyne merged commit 6d46510 into main Nov 21, 2024
12 of 13 checks passed
@jcoyne jcoyne deleted the 3448-search-box-border branch November 21, 2024 15:25
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.

Search box should have rounded left/start border when only one search field is configured
2 participants