Skip to content

Commit

Permalink
InputOtp styles are added
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrogenous committed Apr 8, 2024
1 parent 19c4414 commit ab2524b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions theme-base/_components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
@import './components/input/_inputtext';
@import './components/input/_iconfield';
@import './components/input/_inputicon';
@import './components/input/_inputotp';
@import './components/input/_listbox';
@import './components/input/_mention';
@import './components/input/_multiselect';
Expand Down
10 changes: 10 additions & 0 deletions theme-base/components/input/_inputotp.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.p-inputotp {
display: flex;
align-items: center;
gap: $inlineSpacing;
}

.p-inputotp-input {
text-align: center;
width: 2 * nth($inputPadding, 2) + 1rem;

This comment has been minimized.

Copy link
@smarty77

smarty77 Apr 9, 2024

if $inputPadding variable is pixel based, then +1rem will not work

}

0 comments on commit ab2524b

Please sign in to comment.