Skip to content

Text Input Group issues #6697

@dlabrecq

Description

@dlabrecq

I added PatternFly's new Text Input Group component to Cost Management. The type-ahead is more usable than the Select component, but there are limitations. For example, we cannot add place holder text and an aria label. I also had to take some liberties regarding how keyboard navigation works.

Below are the observations I made while implementing the Text Input Group component.

Component Issues

  1. Cannot add place holder text
  2. . TextInputGroupMain does not clear input text for a value of undefined — must be an empty string

Example issues

  1. Example doesn't use aira labels
  2. Input focus box not rendered correctly without clear button — must conditionally render TextInputGroupUtilities
  3. Input value cleared when menu has focus and escape key is pressed — should just close the menu and set focus on the text input for further editing
  4. The tab key doesn't appear to work at all -- code looks like it was intended to select a menu option?

Cost Management implementation

  1. Added “No results found” label instead of always showing “Suggestions”
  2. Made the tab key clear the input value and navigate to the next tab index
  3. A lot of keyboard navigation code must be added manually — painstaking to get working correctly

chrome-capture

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions