From 8963eaa7a0029a866bc5fe988853b10e6b439936 Mon Sep 17 00:00:00 2001 From: Jonathan Roebuck Date: Tue, 15 Oct 2024 14:33:21 +0100 Subject: [PATCH] remove duplicated style Signed-off-by: Jonathan Roebuck --- .../OpenApiDefinitionWidget/OpenApiDefinition.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/api-docs/src/components/OpenApiDefinitionWidget/OpenApiDefinition.tsx b/plugins/api-docs/src/components/OpenApiDefinitionWidget/OpenApiDefinition.tsx index 58b1a277a5..ea1df525b7 100644 --- a/plugins/api-docs/src/components/OpenApiDefinitionWidget/OpenApiDefinition.tsx +++ b/plugins/api-docs/src/components/OpenApiDefinitionWidget/OpenApiDefinition.tsx @@ -94,7 +94,8 @@ const useStyles = makeStyles(theme => ({ .errors small`]: { color: theme.palette.text.secondary, }, - [`& .parameter__name.required:after`]: { + [`& .parameter__name.required:after, + .parameter__name.required span`]: { color: theme.palette.warning.dark, }, [`& table.model, @@ -165,11 +166,9 @@ const useStyles = makeStyles(theme => ({ [`.json-schema-2020-12__constraint--string`]: { backgroundColor: theme.palette.primary.main, }, - [`& .json-schema-2020-12__attribute--primary, - .json-schema-2020-12-property--required>.json-schema-2020-12:first-of-type>.json-schema-2020-12-head .json-schema-2020-12__title:after`]: - { - color: theme.palette.primary.main, - }, + [`& .json-schema-2020-12__attribute--primary`]: { + color: theme.palette.primary.main, + }, [`& .json-schema-2020-12-property--required>.json-schema-2020-12:first-of-type>.json-schema-2020-12-head .json-schema-2020-12__title:after`]: { color: theme.palette.warning.dark,