提交 de62d3b4 编写于 作者: J Jacopo

Expand/collapse button -> Change to make it look like a toggle

Changed the expand/collapse button to look different when is
opened/closed
上级 ae52d1a4
......@@ -22,6 +22,7 @@ $(() => {
}
$('body').on('click', '.js-toggle-button', function toggleButton(e) {
e.target.classList.toggle('open');
toggleContainer($(this).closest('.js-toggle-container'));
const targetTag = e.currentTarget.tagName.toLowerCase();
......
......@@ -135,7 +135,7 @@
.text-expander {
display: inline-block;
background: $gray-light;
background: $white-light;
color: $gl-text-color-secondary;
padding: 0 5px;
cursor: pointer;
......@@ -146,6 +146,11 @@
line-height: $gl-font-size;
outline: none;
&.open {
background: $gray-light;
box-shadow: inset 0 0 2px rgba($black, 0.2);
}
&:hover {
background-color: darken($gray-light, 10%);
text-decoration: none;
......
---
title: Expand/collapse button -> Change to make it look like a toggle
merge_request: 10720
author: Jacopo Beschi @jacopo-beschi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册