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

fix: solved preset loader text color #24

Merged
merged 1 commit into from
Aug 7, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -104,24 +104,27 @@ export class DyneSlangroomPresetLoader {
<dyne-button size="small" emphasis="m" onClick={() => this.dialog?.showModal()}>
Select preset
</dyne-button>
<dialog class="backdrop:bg-black backdrop:opacity-75 h-screen m-0 bg-white">

<dialog class="backdrop:bg-black backdrop:opacity-75 h-screen m-0 bg-white text-black">
<div class="sticky top-0 bg-white">
<div class="flex gap-4 justify-between items-center p-4 border-b ">
<p>Select a Slangroom preset</p>
<dyne-button size="small" emphasis="m" onClick={() => this.dialog?.close()}>
X
</dyne-button>
</div>

<div class="p-4 border-b">
<input
class="block border w-full p-2 rounded-md hover:bg-slate-100 focus:bg-transparent"
class="block border w-full p-2 rounded-md hover:bg-slate-100 focus:bg-transparent bg-transparent"
name="search"
value={this.searchText}
placeholder="Search for a topic"
onInput={e => this.updateSearchText(e)}
></input>
</div>
</div>

<PresetsSelect
presets={this.filteredPresets}
onPresetSelect={this.onPresetSelect.bind(this)}
Expand All @@ -148,10 +151,10 @@ function PresetsSelect(props: PresetsProps) {
);

return (
<div class="p-4 space-y-4">
<div class="p-4 space-y-6">
{Object.entries(groupedPresets).map(([groupName, groupContent]) => (
<div>
<p class="uppercase text-xs font-semibold tracking-wide text-slate-600 mb-2">
<p class="uppercase text-xs font-semibold tracking-wide text-slate-500 mb-2">
{groupName}
</p>
<ul class="space-y-1">
Expand Down
Loading