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

Inline global search field suffix #12656

Merged
merged 1 commit into from May 6, 2024
Merged

Conversation

zepfietje
Copy link
Member

Description

The global search field suffix is currently not inline, which means it takes up more space than needed. Also, the prefix icon is in fact inline. Most places I checked have the suffix inline, so I'd suggest streamlining this in Filament too.

Maybe we could introduce an alternative API later to offer more customization options, like this:

->globalSearchField(fn (TextInput $component): TextInput $component->inlineSuffix(false))

Visual changes

Before

Screenshot 2024-05-06 at 17 23 52

After

Screenshot 2024-05-06 at 17 23 35

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

@zepfietje zepfietje added the enhancement New feature or request label May 6, 2024
@zepfietje zepfietje added this to the v3 milestone May 6, 2024
@zepfietje
Copy link
Member Author

@lukas-frey @danharrin

@zepfietje zepfietje requested a review from danharrin May 6, 2024 15:24
@danharrin danharrin merged commit 3d57f81 into 3.x May 6, 2024
22 checks passed
@danharrin danharrin deleted the inline-global-search-field-suffix branch May 6, 2024 15:26
@lukas-frey
Copy link
Contributor

Looks better 👍 I always forget about the inline versions :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants