This repository is currently being migrated. It's locked while the migration is in progress.
va-text-input: fix bug where focus was hiding prefix/suffix icons#2078
Merged
Conversation
RyanMunsch
reviewed
Apr 22, 2026
Contributor
There was a problem hiding this comment.
Question
Probably a better question for @jeana-adhoc or @amyleadem, but should clicking the icon set focus on the input element?
Contributor
|
Based on my testing, the icon issue is resolved by the |
jamigibbs
suggested changes
Apr 22, 2026
jamigibbs
left a comment
Contributor
There was a problem hiding this comment.
We had a PR a few months ago that I think wanted to resolve this issue too but we tracked down the original problem to a global z-index mentioned here by Amy.
What I think we might actually want to do is add that global z-index directly to the va-sidenav component and remove the global reference. That will fix it here for va-text-input.
jamigibbs
approved these changes
Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Chromatic
https://5346-input-focus-prefix-suffix--65a6e2ed2314f7b8f98609d8.chromatic.com
Summary
Fixed bug where prefix and suffix icons were being hidden when the text input was focused
Description
In mixins/focusable.scss, inputs are given a z-index of 2 when they are focused. This caused the prefix and suffix icons in va-text-input to be hidden when the field was focussed. This change moves that z-index to va-subnav.
Related tickets and links
Closes 5346
Screenshots
Before:

After:

Testing and review
Provide any testing instructions or review steps as needed.
Approvals
See the QA Checklists section below for suggested approvals. Use your best judgment if additional reviews are needed. When in doubt, request a review.
Approval groups
Add approval groups to the PR as needed:
QA checklists
Use the QA checklists below as guides, not rules. Not all checklists will apply to every PR but there could be some overlap.
In all scenarios, changes should be fully tested by the author and verified by the reviewer(s); functionality, responsiveness, etc.
✨ New Component Added
minorlabel🌱 New Component Variation Added
minorlabel🐞 Component Fix
patchlabel♿️ Component Fix - Accessibility
patchlabel🚨 Component Fix - Breaking API Change
majorlabel🔧 Component Update - Non-Breaking API Change
minorlabel📖 Storybook Update
ignore-for-releaselabel🎨 CSS-Library Update
css-librarylabel