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

Release 12.6.1 #872

Merged
merged 21 commits into from
Aug 23, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Make (left) icons optional
  • Loading branch information
simurai committed Jul 22, 2019
commit f48d63f736f554e81740b6a67f6eef3cde628ea1
4 changes: 2 additions & 2 deletions pages/css/components/select-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ Add a `.SelectMenu-icon .octicon-check` icon and it will show up when `aria-chec
<svg class="SelectMenu-icon octicon octicon-check" style="fill:currentColor" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5L12 5z"></path></svg>
Selected state
</button>
<button class="SelectMenu-item" role="menuitemcheckbox">Default state</button>
<button class="SelectMenu-item" role="menuitemcheckbox">Default state</button>
<button class="SelectMenu-item pl-6" role="menuitemcheckbox">Default state</button>
<button class="SelectMenu-item pl-6" role="menuitemcheckbox">Default state</button>
</menu>
</div>
</div>
Expand Down
13 changes: 4 additions & 9 deletions src/select-menu/select-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
padding: $spacer-3;

@include breakpoint(sm) {
padding: $spacer-2;
padding-top: $spacer-2;
padding-bottom: $spacer-2;
}
}

Expand Down Expand Up @@ -175,7 +176,7 @@
.SelectMenu-item {
display: block;
width: 100%;
padding: $spacer-3 $spacer-5;
padding: $spacer-3;
overflow: hidden;
color: $text-gray;
text-align: left;
Expand All @@ -199,9 +200,7 @@
// The icon shown on the left of a list item. Typically a check icon.

.SelectMenu-icon {
position: absolute;
height: 1.5em; // Mimics line-height to vertically center the icon
margin-left: -20px;
margin-right: $spacer-2;
visibility: hidden;
transition: transform 0.12s cubic-bezier(0.5, 0.1, 1, 0.5), visibility 0s 0.12s linear;
transform: scale(0);
Expand Down Expand Up @@ -296,10 +295,6 @@
&:last-child {
border-bottom: 0;
}

@include breakpoint(sm) {
padding: $spacer-1 $spacer-2;
}
}

// Footer
Expand Down