From c01874d5930b58e51920e7bb95ffb8d01fbd5473 Mon Sep 17 00:00:00 2001 From: lane-wetmore Date: Mon, 30 Jun 2025 10:03:17 -0500 Subject: [PATCH] update color-contrast (#31080) --- ui/app/styles/utils/swagger.scss | 47 ++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/ui/app/styles/utils/swagger.scss b/ui/app/styles/utils/swagger.scss index 107960a200..0e38e77ff6 100644 --- a/ui/app/styles/utils/swagger.scss +++ b/ui/app/styles/utils/swagger.scss @@ -1,4 +1,5 @@ @use '../utils/size_variables'; +@use '../utils/color_variables'; /** * Copyright (c) HashiCorp, Inc. @@ -11,6 +12,46 @@ .swagger-ember .swagger-ui .wrapper { padding: 0; + .info a { + color: color_variables.$blue-700; + } + + .title { + small { + background-color: color_variables.$ui-gray-800; + } + .version-stamp { + background-color: color_variables.$green-700; + } + } + + .opblock-deprecated { + opacity: 1; + + .opblock-summary-method { + background-color: color_variables.$ui-gray-700; + } + } + + .opblock-get { + .opblock-summary-method { + background-color: color_variables.$blue-500; + } + } + + .opblock-post, + .opblock-patch { + .opblock-summary-method { + background-color: color_variables.$green-700; + } + } + + .opblock-delete { + .opblock-summary-method { + background-color: color_variables.$red-500; + } + } + .opblock-summary-path-description-wrapper { width: min-content; flex-grow: 1; @@ -24,9 +65,9 @@ } } - .copy-to-clipboard - { - &:focus, &:focus-visible { + .copy-to-clipboard { + &:focus, + &:focus-visible { width: size_variables.$size-4; } }