From c4ebb3fecd50ee737487a47519d2f3a774ae59e5 Mon Sep 17 00:00:00 2001 From: "Nolann B." <100787331+nolannbiron@users.noreply.github.com> Date: Wed, 30 Apr 2025 11:27:03 +0200 Subject: [PATCH] Fix openapi-select hover in responses (#3196) --- .changeset/breezy-bugs-dream.md | 5 +++++ .../gitbook/src/components/DocumentView/OpenAPI/style.css | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changeset/breezy-bugs-dream.md diff --git a/.changeset/breezy-bugs-dream.md b/.changeset/breezy-bugs-dream.md new file mode 100644 index 000000000..69d202287 --- /dev/null +++ b/.changeset/breezy-bugs-dream.md @@ -0,0 +1,5 @@ +--- +'gitbook': patch +--- + +Fix openapi-select hover in responses diff --git a/packages/gitbook/src/components/DocumentView/OpenAPI/style.css b/packages/gitbook/src/components/DocumentView/OpenAPI/style.css index 601885c5d..f4757ca2b 100644 --- a/packages/gitbook/src/components/DocumentView/OpenAPI/style.css +++ b/packages/gitbook/src/components/DocumentView/OpenAPI/style.css @@ -687,6 +687,10 @@ body:has(.openapi-select-popover) { @apply bg-tint-subtle; } +.openapi-disclosure-group:has(.openapi-disclosure-group-trigger:hover):has(.openapi-select:hover) { + @apply !bg-transparent; +} + .openapi-disclosure-group-trigger { @apply flex w-full items-baseline gap-3 transition-all relative flex-1 p-3 -outline-offset-1; } @@ -719,7 +723,7 @@ body:has(.openapi-select-popover) { @apply rotate-90; } -.openapi-disclosure-group-mediatype { +.openapi-disclosure-group-mediatype:not(:has(.openapi-select)) { @apply text-[0.625rem] font-mono shrink-0 grow-0 text-tint-subtle contrast-more:text-tint; }