Skip to content

Possible to get incorrect focus styling #333

Open
@edwardhorsford

Description

@edwardhorsford

There seem to be cases where the input is focused, but it does not get the regular focus styling.

Video of me repeatedly clicking the label:
autocomplete-focus

If I set the main input to focused in the web-inspector, there's no focus styles - so I presume the yellow focus border is normally handled by something else.

I see that when the correct yellow border is applied, it has the class autocomplete__input--focused. So it seems it's possible for this class to be missing whilst the input is focused.

Is there a downside to giving focus styling directly to this input? I worry that it doesn't have it for a good reason. Else should we be adding this class more liberally?

This is minor issue for us as we've added something to work around not being able to click the arrow (#202) and a clear button to clear results (#240), both of which focus the input when they're done - but with the wrong focus styling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working the way it should (including incorrect wording in documentation)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions