Skip to content

Commit

Permalink
fix(password-input): position visibility toggle for md and lg sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed May 13, 2021
1 parent 383d109 commit f055883
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion packages/components/src/components/text-input/_text-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@
padding-right: $carbon--spacing-08;
}

.#{$prefix}--text-input--sm.#{$prefix}--password-input {
padding-right: $carbon--spacing-07;
}

.#{$prefix}--text-input--lg.#{$prefix}--password-input {
padding-right: $carbon--spacing-09;
}

.#{$prefix}--text-input::placeholder {
@include placeholder-colors;
}
Expand Down Expand Up @@ -110,7 +118,7 @@
right: 0;
display: flex;
width: rem(40px);
height: rem(40px);
height: 100%;
min-height: auto;
align-items: center;
justify-content: center;
Expand All @@ -121,6 +129,16 @@
transition: outline $duration--fast-01 motion(standard, productive);
}

.#{$prefix}--text-input--sm
+ .#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger {
width: rem(32px);
}

.#{$prefix}--text-input--lg
+ .#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger {
width: rem(48px);
}

.#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger
svg {
fill: $icon-secondary;
Expand Down

0 comments on commit f055883

Please sign in to comment.