diff --git a/webapp/src/components/sidebar.scss b/webapp/src/components/sidebar.scss index bd92386ac..2e6490ad1 100644 --- a/webapp/src/components/sidebar.scss +++ b/webapp/src/components/sidebar.scss @@ -99,11 +99,11 @@ } &.expanded { - .SubmenuTriangleIcon { + .DisclosureTriangleIcon { transform: rotate(90deg); } } - .SubmenuTriangleIcon { + .DisclosureTriangleIcon { transition: 200ms ease-in-out; transform: rotate(0deg); } @@ -117,7 +117,7 @@ text-overflow: ellipsis; } - .OptionsIcon, .SubmenuTriangleIcon, .DotIcon { + .OptionsIcon, .DisclosureTriangleIcon, .DotIcon { fill: rgba(var(--sidebar-fg), 0.5); flex-shrink: 0; } diff --git a/webapp/src/components/sidebar.tsx b/webapp/src/components/sidebar.tsx index 4b60c62d2..24a82bc85 100644 --- a/webapp/src/components/sidebar.tsx +++ b/webapp/src/components/sidebar.tsx @@ -18,7 +18,7 @@ import HamburgerIcon from '../widgets/icons/hamburger' import HideSidebarIcon from '../widgets/icons/hideSidebar' import OptionsIcon from '../widgets/icons/options' import ShowSidebarIcon from '../widgets/icons/showSidebar' -import SubmenuTriangleIcon from '../widgets/icons/submenuTriangle' +import DisclosureTriangle from '../widgets/icons/disclosureTriangle' import Menu from '../widgets/menu' import MenuWrapper from '../widgets/menuWrapper' import './sidebar.scss' @@ -95,7 +95,7 @@ class Sidebar extends React.Component {
} + icon={} onClick={() => { const newCollapsedBoards = {...this.state.collapsedBoards} newCollapsedBoards[board.id] = !newCollapsedBoards[board.id] diff --git a/webapp/src/widgets/icons/disclosureTriangle.scss b/webapp/src/widgets/icons/disclosureTriangle.scss new file mode 100644 index 000000000..9dffff683 --- /dev/null +++ b/webapp/src/widgets/icons/disclosureTriangle.scss @@ -0,0 +1,6 @@ +.DisclosureTriangleIcon { + fill: rgba(var(--main-fg), 0.7); + stroke: none; + width: 24px; + height: 24px; +} diff --git a/webapp/src/widgets/icons/disclosureTriangle.tsx b/webapp/src/widgets/icons/disclosureTriangle.tsx new file mode 100644 index 000000000..d569dd176 --- /dev/null +++ b/webapp/src/widgets/icons/disclosureTriangle.tsx @@ -0,0 +1,18 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + +import React from 'react' + +import './disclosureTriangle.scss' + +export default function DisclosureTriangle(): JSX.Element { + return ( + + + + ) +}