1
1
mirror of https://github.com/primer/css.git synced 2025-01-07 14:58:54 +03:00

Merge pull request #884 from primer/dropdown-menu-content

Remove .dropdown-menu-content
This commit is contained in:
Shawn Allen 2019-09-10 14:16:38 -07:00 committed by GitHub
commit 3889f1c81e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 18 deletions

View File

@ -51,6 +51,14 @@ const versionDeprecations = {
{
selectors: ['.centered'],
message: `You can use the "mx-auto" class to center any element.`
},
{
selectors: [
'.dropdown-menu-content',
'.dropdown.active .dropdown-menu-content',
'.dropdown-menu-content.anim-scale-in'
],
message: `The "dropdown-menu-content" class is unnecessary.`
}
]
}

View File

@ -1,12 +1,5 @@
.dropdown {
position: relative;
&.active {
.dropdown-menu-content {
display: block;
pointer-events: all;
}
}
}
.dropdown-caret {
@ -121,17 +114,6 @@
color: $text-gray;
}
.dropdown-menu-content {
display: none;
// stylelint-disable-next-line primer/no-override
&.anim-scale-in {
position: relative;
z-index: 100;
pointer-events: none;
}
}
.dropdown-item[aria-checked="false"] .octicon-check {
display: none;
}