mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-23 06:19:22 -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 std::hash::Hash;
|
||||
use wasm_bindgen::__rt::IntoJsResult;
|
||||
|
@ -11,7 +16,7 @@ pub struct SelectOption<T> {
|
|||
|
||||
#[component]
|
||||
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>>>,
|
||||
) -> impl IntoView
|
||||
where
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
}
|
||||
|
||||
.melt-select-menu {
|
||||
background-color: #fff;
|
||||
box-sizing: border-box;
|
||||
padding: 5px;
|
||||
position: absolute;
|
||||
|
|
Loading…
Add table
Reference in a new issue