Transition Input Focus States from Inset to Outset/Border-Aligned Rings #8148
asuwebdesign
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem Statement
Currently, PatternFly’s form components (specifically
TextInput,TextArea, andSelect) utilize an inset focus ring. While this creates a distinct brand identity, it presents a few functional challenges:The Current State vs. Industry Standards
Most high-utility design systems have moved toward an outset or border-aligned approach to ensure the focus indicator does not obscure or crowd the component's content.
Proposed Solution
We suggest updating the PatternFly global focus variables to move the focus ring from an
insetbox-shadow to either:outlinewith a smalloutline-offset.box-shadowthat renders outside the element's perimeter (e.g.,box-shadow: 0 0 0 3px ...).This change would ensure that the input's internal spacing remains constant and "stable" during data entry, reducing cognitive load and visual noise.
References & Accessibility Standards
Final Thoughts
By aligning with the "outset" standard, PatternFly can provide a more intuitive and accessible experience for users who navigate via keyboard while maintaining the high aesthetic standards of the library.
Beta Was this translation helpful? Give feedback.
All reactions