diff --git a/demo_markdown/docs/button/mod.md b/demo_markdown/docs/button/mod.md index 81e737e..ae8c087 100644 --- a/demo_markdown/docs/button/mod.md +++ b/demo_markdown/docs/button/mod.md @@ -4,7 +4,7 @@ view! { - + @@ -80,8 +80,8 @@ view! { - - - + + + - - - + + + } diff --git a/thaw/src/button/button.css b/thaw/src/button/button.css index db77053..4afa9f1 100644 --- a/thaw/src/button/button.css +++ b/thaw/src/button/button.css @@ -13,7 +13,7 @@ user-select: none; } -.thaw-button:hover:not(.thaw-button--disabled, .thaw-button--solid) { +.thaw-button:hover:not(.thaw-button--disabled, .thaw-button--outlined) { border-color: var(--thaw-border-color-hover); background-color: var(--thaw-background-color-hover); cursor: pointer; @@ -37,13 +37,13 @@ background-color: var(--thaw-background-color-active); } -.thaw-button--solid { +.thaw-button--outlined { background-color: transparent; color: inherit; transition: all 0.3s; } -.thaw-button--solid:hover:not(.thaw-button--disabled) { +.thaw-button--outlined:hover:not(.thaw-button--disabled) { cursor: pointer; color: var(--thaw-font-color-hover); border-color: var(--thaw-border-color-hover); diff --git a/thaw/src/button/mod.rs b/thaw/src/button/mod.rs index af140eb..4c1b645 100644 --- a/thaw/src/button/mod.rs +++ b/thaw/src/button/mod.rs @@ -15,7 +15,7 @@ pub use theme::ButtonTheme; pub enum ButtonVariant { #[default] Primary, - Solid, + Outlined, Text, Link, } @@ -155,11 +155,11 @@ pub fn Button( theme.button.color_border_disabled )); } - ButtonVariant::Solid => { + ButtonVariant::Outlined => { css_vars.push_str(&format!("--thaw-font-color-hover: {bg_color};")); css_vars.push_str(&format!( "--thaw-border-color: {};", - theme.button.border_color_solid + theme.button.border_color_outlined )); css_vars.push_str(&format!("--thaw-border-color-hover: {bg_color};")); css_vars.push_str(&format!("--thaw-ripple-color: {bg_color};")); @@ -223,8 +223,8 @@ pub fn Button( view! { diff --git a/thaw/src/time_picker/mod.rs b/thaw/src/time_picker/mod.rs index b77be25..2fde7ed 100644 --- a/thaw/src/time_picker/mod.rs +++ b/thaw/src/time_picker/mod.rs @@ -257,7 +257,7 @@ fn Panel(