Skip to content

16650 button contrast issues #16845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion netbox/project-static/dist/netbox.css

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions netbox/project-static/styles/overrides/_tabler.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ table th.orderable a {
@include color-mode(dark, true) {
--#{$prefix}alert-color: darken(var(--#{$prefix}warning),10%);
--#{$prefix}link-color: #{$bright-teal};
--#{$prefix}link-color-rgb: 0,242,212;
--#{$prefix}link-hover-color-rgb: 0,242,212;
--#{$prefix}secondary: #{$gray-400};
--#{$prefix}primary: #{$bright-teal};
--#{$prefix}primary-fg: #{$rich-black};
--#{$prefix}primary-rgb: 0,242,212;
--#{$prefix}btn-active-color: #{$rich-black};
}
}

Expand All @@ -70,6 +76,22 @@ table th.orderable a {
color: $rich-black!important;
}

// Add button focus state
.btn:focus {
border: 1px solid var(--tblr-primary-fg);
outline: 2px solid var(--tblr-primary)!important;
}

// Fix secondary combo button contrast
.btn-outline-secondary {
&.active {
color: var(--tblr-primary-fg);
}
&:hover {
color: var(--tblr-primary-fg);
}
}

// Dark mode overrides
body[data-bs-theme=dark] {

Expand All @@ -86,6 +108,9 @@ body[data-bs-theme=dark] {
table {
a {
color: $bright-teal;
&.dropdown-item {
color: inherit;
}
}
.badge a {
color: inherit;
Expand All @@ -101,6 +126,9 @@ body[data-bs-theme=dark] {

// Adjusting text colors
.text- {
&bg-primary {
color: $rich-black!important;
}
&muted {
color: var(--#{$prefix}secondary-color) !important;
}
Expand Down