-
Notifications
You must be signed in to change notification settings - Fork 165
[terra-tag] Create tag-list subcomponent #3854
Conversation
Why was a new tag component created instead of using the existing terra-tag package? |
I created this PR only so I could get the functionality reviewed. I am still unclear whether a new package needs to be created in which case we would keep both terra-tag and terra-tag-list like it's done for terra-button or we need to have just one package like the one we have for terra-pills. If it's the former we can keep this structure else we can leverage the existing terra-tag package and update it. |
I think design was to create a new subcomponent ( basically container which would have prop children of type terra-tag ) within terra-tag component to support list of terra-tag components. Can you revert these changes and add new subcomponent for tag-list like terra-dropdown-button-split-button. |
@cm9361 We have addressed the PR review comments can you have a look into that. We updated Terra-TagList to use state variables to update Tabindex and we found that there was not much difference on page load time compared to the existing way of updating the tabIndex instead this approach adding state requires more code changes to the existing implementation of TagList. Adding snapshots of performance loading:
Below screenshot was taken while performing keyboard navigation which updates tabIndex through state variable The existing approach has been validated with multiple components and scenarios and works as expected. Thanks |
Hi @scottwilmarth . Could you please review this PR. It's been pending for the UXApproval. Thanks |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
+1 for accessibility testing and Approved |
Created a jira for this issue found in accessibility testing. |
Summary
Created a new component TagList which will have tags grouped together. A Subcomponent, Tag, was created for this main component.
What was changed: Created a new component
terra-tag-list
.Why it was changed: To be able to group all tags together and add keyboard navigation using left and right arrow keys to navigate the list.
Testing
This change was tested using:
Reviews
In addition to engineering reviews, this PR needs:
Additional Details
This PR resolves:
UXPLATFORM-7629
Thank you for contributing to Terra.
@cerner/terra