From: Dominik Csapak <d.csapak@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [yew-devel] [PATCH yew-widget-toolkit 1/1] widget: tab panel: mark material tabs with css class for variants
Date: Mon, 12 Jan 2026 13:09:01 +0100 [thread overview]
Message-ID: <20260112120907.1947324-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20260112120907.1947324-1-d.csapak@proxmox.com>
that way it's possible to give different css properties to primary
and secondary style material tabs.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
src/widget/tab/tab_bar.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/widget/tab/tab_bar.rs b/src/widget/tab/tab_bar.rs
index 44fb9f3..6714746 100644
--- a/src/widget/tab/tab_bar.rs
+++ b/src/widget/tab/tab_bar.rs
@@ -487,13 +487,13 @@ impl Component for PwtTabBar {
let rtl = self.rtl.unwrap_or(false);
let (variant_class, indicator_class) = match ctx.props().style {
- TabBarStyle::Pills => ("pwt-nav-pills", classes!()),
+ TabBarStyle::Pills => (classes!("pwt-nav-pills"), classes!()),
TabBarStyle::MaterialPrimary => (
- "pwt-tab-material",
+ classes!("pwt-tab-material", "primary"),
classes!("pwt-tab-active-indicator", "primary"),
),
TabBarStyle::MaterialSecondary => (
- "pwt-tab-material",
+ classes!("pwt-tab-material", "secondary"),
classes!("pwt-tab-active-indicator", "secondary"),
),
};
--
2.47.3
_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel
next prev parent reply other threads:[~2026-01-12 12:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-12 12:09 [yew-devel] [PATCH yew-widget-toolkit/yew-widget-toolkit-assets 0/2] fix style for secondary material style tabs Dominik Csapak
2026-01-12 12:09 ` Dominik Csapak [this message]
2026-01-12 12:09 ` [yew-devel] [PATCH yew-widget-toolkit-assets 1/1] material: tab panel: fix secondary tab bar style Dominik Csapak
2026-01-12 15:26 ` [yew-devel] applied: [PATCH yew-widget-toolkit/yew-widget-toolkit-assets 0/2] fix style for secondary material style tabs Dietmar Maurer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260112120907.1947324-2-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=yew-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox