From 4ffa33407c9dd65d9ff3d036a9b6ed0a4d81b9c3 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Mon, 6 Jan 2025 10:20:03 +0100 Subject: [PATCH] UI: typography add color: 'inherit' --- pkgs/webview-ui/app/src/components/Typography/index.tsx | 8 +++----- pkgs/webview-ui/app/src/components/group/index.tsx | 2 +- pkgs/webview-ui/app/src/components/inputBase/index.tsx | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/webview-ui/app/src/components/Typography/index.tsx b/pkgs/webview-ui/app/src/components/Typography/index.tsx index 29957aa35..fcc829ab0 100644 --- a/pkgs/webview-ui/app/src/components/Typography/index.tsx +++ b/pkgs/webview-ui/app/src/components/Typography/index.tsx @@ -80,14 +80,11 @@ interface _TypographyProps { size: AllowedSizes; children: JSX.Element; weight?: Weight; - color?: Color; + color?: Color | "inherit"; inverted?: boolean; tag?: Tag; class?: string; classList?: Record; - // Disable using the color prop - // A font color is provided via class / classList or inherited - useExternColor?: boolean; } export const Typography = (props: _TypographyProps) => { @@ -95,7 +92,8 @@ export const Typography = (props: _TypographyProps) => { (
{ diff --git a/pkgs/webview-ui/app/src/components/inputBase/index.tsx b/pkgs/webview-ui/app/src/components/inputBase/index.tsx index eda2298ff..b879e7550 100644 --- a/pkgs/webview-ui/app/src/components/inputBase/index.tsx +++ b/pkgs/webview-ui/app/src/components/inputBase/index.tsx @@ -132,7 +132,7 @@ export const InputLabel = (props: InputLabelProps) => { {props.required && (