mirror of
https://github.com/adoyle0/thaw.git
synced 2025-02-02 16:44:15 -05:00
fix: select background color
This commit is contained in:
parent
bd2144f571
commit
403cf80340
2 changed files with 8 additions and 2 deletions
|
@ -1,4 +1,9 @@
|
||||||
use crate::{teleport::Teleport, theme::use_theme, utils::mount_style::mount_style, Theme};
|
use crate::{
|
||||||
|
teleport::Teleport,
|
||||||
|
theme::use_theme,
|
||||||
|
utils::{maybe_rw_signal::MaybeRwSignal, mount_style::mount_style},
|
||||||
|
Theme,
|
||||||
|
};
|
||||||
use leptos::*;
|
use leptos::*;
|
||||||
use std::hash::Hash;
|
use std::hash::Hash;
|
||||||
use wasm_bindgen::__rt::IntoJsResult;
|
use wasm_bindgen::__rt::IntoJsResult;
|
||||||
|
@ -11,7 +16,7 @@ pub struct SelectOption<T> {
|
||||||
|
|
||||||
#[component]
|
#[component]
|
||||||
pub fn Select<T>(
|
pub fn Select<T>(
|
||||||
#[prop(into)] value: RwSignal<Option<T>>,
|
#[prop(optional, into)] value: MaybeRwSignal<Option<T>>,
|
||||||
#[prop(optional, into)] options: MaybeSignal<Vec<SelectOption<T>>>,
|
#[prop(optional, into)] options: MaybeSignal<Vec<SelectOption<T>>>,
|
||||||
) -> impl IntoView
|
) -> impl IntoView
|
||||||
where
|
where
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.melt-select-menu {
|
.melt-select-menu {
|
||||||
|
background-color: #fff;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
Loading…
Add table
Reference in a new issue