Skip to content

fix(TextInput): reset input styling — border-box and border: none #150

Closed

Description

@cixzhang

Problem

Input components have styling issues when consumed in projects with different CSS resets:

  1. Missing box-sizing: border-box on the input container — padding causes the element to overflow its expected size
  2. Inner <input> element needs border: none — browser default borders show through

Expected Behavior

  • Any XDS element with padding should have box-sizing: border-box so sizing is predictable
  • Inner <input> elements should have their browser default border stripped

Scope

  • XDSTextInput
  • XDSTextArea
  • XDSNumberInput
  • Any other components wrapping native <input> or <textarea>
  • Audit other components with padding to ensure box-sizing: border-box is set

Discovered In

Testing XDS source distribution in a standalone Next.js app (xds_sandbox) where the consuming project's CSS reset differs from the XDS storybook environment.

Activity

  1. added 2 commits that reference this issue on Feb 19, 2026
    8a1a3b6
    e35ab23
  2. added a commit that references this issue on Apr 26, 2026
    2d5ee7e
  3. added a commit that references this issue on Jun 21, 2026
    02f6835
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions