From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 79B4C1FF139 for ; Mon, 12 Jan 2026 13:09:08 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 0334B1CE0C; Mon, 12 Jan 2026 13:09:10 +0100 (CET) From: Dominik Csapak To: yew-devel@lists.proxmox.com Date: Mon, 12 Jan 2026 13:09:01 +0100 Message-ID: <20260112120907.1947324-2-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260112120907.1947324-1-d.csapak@proxmox.com> References: <20260112120907.1947324-1-d.csapak@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.032 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [yew-devel] [PATCH yew-widget-toolkit 1/1] widget: tab panel: mark material tabs with css class for variants X-BeenThere: yew-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Yew framework devel list at Proxmox List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Yew framework devel list at Proxmox Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: yew-devel-bounces@lists.proxmox.com Sender: "yew-devel" that way it's possible to give different css properties to primary and secondary style material tabs. Signed-off-by: Dominik Csapak --- 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