add border to tooltip and modal in high contrast theme (#10834)

pull/10872/head
Prabhat Khera 2023-12-20 08:55:00 +13:00 committed by GitHub
parent 6ede9f8cc3
commit d2ccb10972
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 0 deletions

View File

@ -566,6 +566,10 @@
--border-widget: var(--white-color);
--border-stepper-color: var(--ui-gray-warm-9);
--button-close-color: var(--white-color);
--button-opacity: 1;
--button-opacity-hover: 0.7;
--shadow-box-color: none;
--shadow-boxselector-color: none;

View File

@ -349,6 +349,26 @@ input:-webkit-autofill {
border-left: 8px solid var(--bg-tooltip-color);
}
[theme='highcontrast'] .tippy-box[data-placement^='top'] > .tippy-arrow:before {
border-top: 8px solid var(--white-color);
margin-bottom: -1px;
}
[theme='highcontrast'] .tippy-box[data-placement^='bottom'] > .tippy-arrow:before {
border-bottom: 8px solid var(--white-color);
margin-top: -1px;
}
[theme='highcontrast'] .tippy-box[data-placement^='right'] > .tippy-arrow:before {
border-right: 8px solid var(--white-color);
margin-left: -1px;
}
[theme='highcontrast'] .tippy-box[data-placement^='left'] > .tippy-arrow:before {
border-left: 8px solid var(--white-color);
margin-right: -1px;
}
/* Sidebar */
.sidebar .tippy-box {
font-size: 12px;

View File

@ -21,6 +21,11 @@
opacity: 1 !important;
}
[theme='highcontrast'] .tooltip {
border: 1px solid var(--border-widget);
border-color: var(--white-color) !important;
}
.tooltip-container {
line-height: 18px;
padding: 8px 10px !important;

View File

@ -21,3 +21,7 @@
box-shadow: 0 5px 15px rgb(0 0 0 / 50%);
}
[theme='highcontrast'] .modal-content {
border: 1px solid var(--border-widget);
}