Skip to content
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

Fix active dropdown items #784

Merged
merged 5 commits into from
Aug 27, 2021
Merged

Fix active dropdown items #784

merged 5 commits into from
Aug 27, 2021

Conversation

vogloblinsky
Copy link
Contributor

No description provided.

@julien-deramond
Copy link
Member

Wouldn't it be better to keep this part in _dropdown.scss where (pseudo-code) color = active-color and background = active-bg?

&.active,
&:active {
  color: $dropdown-link-active-color;
  text-decoration: none;
  @include gradient-bg($dropdown-link-active-bg);
}

and rather modify _variables.scss to do:

diff --git a/scss/_variables.scss b/scss/_variables.scss
index 80614b652..1628524b4 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -1144,8 +1144,8 @@ $dropdown-link-color:               $black !default;
 $dropdown-link-hover-color:         $white !default;
 $dropdown-link-hover-bg:            $black !default;

-$dropdown-link-active-color:        $component-active-color !default;
-$dropdown-link-active-bg:           color-contrast($dropdown-link-active-color) !default;
+$dropdown-link-active-color:        color-contrast($component-active-color) !default; // Boosted mod
+$dropdown-link-active-bg:           $component-active-color !default;  // Boosted mod

 $dropdown-link-disabled-color:      $gray-500 !default;

Note: It only has an impact on Dark dropdowns but that doesn't seem to work anyway.

Copy link
Member

@julien-deramond julien-deramond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You just need to remove your modification in scss/_dropdown.scss and this PR is ready to be merged

@julien-deramond julien-deramond linked an issue Aug 27, 2021 that may be closed by this pull request
@julien-deramond julien-deramond removed the request for review from klediouron August 27, 2021 10:03
Copy link
Member

@julien-deramond julien-deramond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@julien-deramond julien-deramond merged commit 0ec4d1d into Orange-OpenSource:v5-dev Aug 27, 2021
@julien-deramond julien-deramond mentioned this pull request Aug 27, 2021
@vogloblinsky vogloblinsky deleted the fix-active-dropdown-items branch August 27, 2021 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Active dropdown items
2 participants