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: change sidebar chevron icon to use svg #1211

Merged
merged 1 commit into from
Jan 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 11 additions & 1 deletion v1/lib/core/nav/SideNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,17 @@ class SideNav extends React.Component {
if (siteConfig.docsSideNavCollapsible) {
categoryClassName += ' collapsible';
ulClassName = 'hide';
arrow = <span className="arrow">&#8963;</span>;
arrow = (
<span className="arrow">
<svg width="24" height="24" viewBox="0 0 24 24">
<path
fill="#565656"
d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
/>
<path d="M0 0h24v24H0z" fill="none" />
</svg>
</span>
);
}

return (
Expand Down
1 change: 1 addition & 0 deletions v1/lib/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,7 @@ input::placeholder {
.collapsible .arrow {
float: right;
margin-right: 8px;
margin-top: -4px;
transform: rotate(90deg);
transition: transform 200ms linear;
}
Expand Down