Skip to content

Commit

Permalink
Select - fix changing border color (#1784)
Browse files Browse the repository at this point in the history
* Select - fix changing border color

* Add note about input classes
  • Loading branch information
iprzybysz committed Jul 18, 2023
1 parent e71b585 commit f77a1a2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
12 changes: 11 additions & 1 deletion site/content/docs/standard/forms/select/a.html
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,17 @@ <h4 class="mb-4 font-bold">Via JavaScript</h4>
<code>data-te-class</code>, as in
<code>data-te-class-form-outline="relative bg-red-600"</code>
</p>

<div
class="my-5 rounded-md border-l-[6px] border-solid border-primary-400 bg-primary-100 p-4 dark:border-primary-300 dark:bg-primary-300/30 ">
<strong>Note:</strong> To apply styling to an input element, you can
utilize the identical classes as those available in the
<a
href="https://tailwind-elements.com/docs/standard/forms/inputs/#docsTabsAPI"
target="_blank"
class="text-primary-700 dark:text-primary-400"
>Inputs API</a
>.
</div>
<div class="flex flex-col">
<div class="overflow-x-auto">
<div class="inline-block min-w-full py-2">
Expand Down
10 changes: 7 additions & 3 deletions src/js/forms/select/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,9 +547,13 @@ class Select {
SELECTOR_FORM_OUTLINE,
this._wrapper
);
const outlineInput = new Input(inputWrapper, {
inputFormWhite: this._config.selectFormWhite,
});
const outlineInput = new Input(
inputWrapper,
{
inputFormWhite: this._config.selectFormWhite,
},
this._classes
);
outlineInput.init();
this._notch = SelectorEngine.findOne(SELECTOR_NOTCH, this._wrapper);
}
Expand Down

0 comments on commit f77a1a2

Please sign in to comment.