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

refactor: improve IconHome icon #7215

Merged
merged 3 commits into from
Apr 20, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@

.icon {
vertical-align: middle;
height: 1rem;
width: 1rem;
height: 1.1rem;
width: 1.1rem;
}
10 changes: 2 additions & 8 deletions packages/docusaurus-theme-classic/src/theme/IconHome/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,9 @@
import React from 'react';
import type {Props} from '@theme/IconHome';

export default function IconDarkMode(props: Props): JSX.Element {
export default function IconHome(props: Props): JSX.Element {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
height="24"
width="24"
viewBox="0 0 24 24"
{...props}>
<path d="M0 0h24v24H0V0z" fill="none" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, I vividly remember I removed this... Must have forgotten to push it, then

<svg viewBox="0 0 24 24" {...props}>
<path
d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z"
fill="currentColor"
Expand Down