Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/TextInput/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import TextInputInnerVisualSlot from '../internal/components/TextInputInnerVisua
import {useProvidedRefOrCreate} from '../hooks'
import {Merge} from '../utils/types'
import TextInputWrapper, {StyledWrapperProps} from '../internal/components/TextInputWrapper'
import TextInputAction from '../internal/components/TextInputInnerAction'
import UnstyledTextInput from '../internal/components/UnstyledTextInput'
import TextInputAction from '../_TextInputInnerAction'

export type TextInputNonPassthroughProps = {
/** @deprecated Use `leadingVisual` or `trailingVisual` prop instead */
Expand Down
56 changes: 28 additions & 28 deletions src/__tests__/__snapshots__/TextInput.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1557,20 +1557,6 @@ exports[`TextInput renders trailingAction icon button 1`] = `
padding-right: 0;
}

.c1 {
border: 0;
font-size: inherit;
font-family: inherit;
background-color: transparent;
-webkit-appearance: none;
color: inherit;
width: 100%;
}

.c1:focus {
outline: 0;
}

.c3 {
position: relative;
}
Expand Down Expand Up @@ -1795,6 +1781,20 @@ exports[`TextInput renders trailingAction icon button 1`] = `
left: 10px;
}

.c1 {
border: 0;
font-size: inherit;
font-family: inherit;
background-color: transparent;
-webkit-appearance: none;
color: inherit;
width: 100%;
}

.c1:focus {
outline: 0;
}

@media (forced-colors:active) {
.c4:focus {
outline: solid 1px transparent;
Expand Down Expand Up @@ -2608,20 +2608,6 @@ exports[`TextInput renders trailingAction text button with a tooltip 1`] = `
padding-right: 0;
}

.c1 {
border: 0;
font-size: inherit;
font-family: inherit;
background-color: transparent;
-webkit-appearance: none;
color: inherit;
width: 100%;
}

.c1:focus {
outline: 0;
}

.c3 {
position: relative;
display: inline-block;
Expand Down Expand Up @@ -2847,6 +2833,20 @@ exports[`TextInput renders trailingAction text button with a tooltip 1`] = `
left: 10px;
}

.c1 {
border: 0;
font-size: inherit;
font-family: inherit;
background-color: transparent;
-webkit-appearance: none;
color: inherit;
width: 100%;
}

.c1:focus {
outline: 0;
}

@media (forced-colors:active) {
.c4:focus {
outline: solid 1px transparent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, {forwardRef} from 'react'
import {IconProps} from '@primer/octicons-react'
import Box from './Box'
import {Button, IconButton, ButtonProps} from './Button'
import Tooltip from './Tooltip'
import {BetterSystemStyleObject, merge, SxProp} from './sx'
import Box from '../../Box'
import {Button, IconButton, ButtonProps} from '../../Button'
import Tooltip from '../../Tooltip'
import {BetterSystemStyleObject, merge, SxProp} from '../../sx'

type TextInputActionProps = Omit<
React.ButtonHTMLAttributes<HTMLButtonElement>,
Expand Down