Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select - fix changing border color #1784

Merged
merged 2 commits into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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