Skip to content

Commit

Permalink
feat(input): support native input elements directly
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de committed Dec 27, 2024
1 parent 1ecfaf3 commit 46940f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/definitions/elements/input.less
Original file line number Diff line number Diff line change
Expand Up @@ -807,5 +807,14 @@
});
}

& when (@variationInputNative) {
input.ui.input:extend(.ui.input > input) {}
input.ui.input:not([type="color"]):extend(.ui.input > input:not([type="color"])) {}
input.ui.input:active:extend(.ui.input > input:active) {}
input.ui.input:focus:extend(.ui.input > input:focus) {}
input.ui.input::placeholder:extend(.ui.input > input::placeholder) {}
input.ui.input:focus::placeholder:extend(.ui.input > input:focus::placeholder) {}
}

// stylelint-disable no-invalid-position-at-import-rule
@import (multiple, optional) "../../overrides.less";
1 change: 1 addition & 0 deletions src/themes/default/globals/variation.variables
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
@variationInputAction: true;
@variationInputFluid: true;
@variationInputFile: true;
@variationInputNative: true;
@variationInputColors: @variationAllColors;
@variationInputSizes: @variationAllSizes;

Expand Down

0 comments on commit 46940f6

Please sign in to comment.