Skip to content

Commit

Permalink
feat(input): make readonly addons styles not looking as disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kikoruiz committed Aug 2, 2023
1 parent 2aabdad commit e6fcd03
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
17 changes: 0 additions & 17 deletions packages/components/input/src/InputAddon.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ export const inputAddonStyles = cva(
disabled: {
true: ['pointer-events-none'],
},
readOnly: {
true: ['pointer-events-none'],
},
design: {
text: '',
solid: '',
Expand All @@ -34,10 +31,6 @@ export const inputAddonStyles = cva(
compoundVariants: [
{
disabled: false,
design: 'text',
class: ['bg-surface', 'text-on-surface'],
},
{
readOnly: false,
design: 'text',
class: ['bg-surface', 'text-on-surface'],
Expand All @@ -47,21 +40,11 @@ export const inputAddonStyles = cva(
design: 'text',
class: ['text-on-surface/dim-3'],
},
{
readOnly: true,
design: 'text',
class: ['text-on-surface/dim-3'],
},
{
disabled: true,
design: ['solid', 'inline'],
class: ['opacity-dim-3'],
},
{
readOnly: true,
design: ['solid', 'inline'],
class: ['opacity-dim-3'],
},
],
defaultVariants: {
intent: 'neutral',
Expand Down
1 change: 0 additions & 1 deletion packages/components/input/src/InputGroup.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const inputGroupStyles = cva(['relative inline-flex w-full'], {
},
readOnly: {
true: [
'cursor-not-allowed',
'relative',
'after:absolute',
'after:top-none',
Expand Down

0 comments on commit e6fcd03

Please sign in to comment.