Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Style icons with CSS #2272

Merged
merged 10 commits into from
Apr 1, 2020
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 @@ -23,6 +23,7 @@ exports[`it renders a closed Section correctly 1`] = `
className="root"
>
<svg
className="icon"
fill="none"
height="24"
stroke="currentColor"
Expand Down Expand Up @@ -72,6 +73,7 @@ exports[`it renders an open Section correctly 1`] = `
className="root"
>
<svg
className="icon"
fill="none"
height="24"
stroke="currentColor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ ReactTestInstance {
"calls": Array [
Array [
Object {
"icon": <Classify(Icon)
"icon": <Icon
attrs={
Object {
"width": 18,
Expand Down Expand Up @@ -772,7 +772,7 @@ Debug: 1 1",
"calls": Array [
Array [
Object {
"icon": <Classify(Icon)
"icon": <Icon
attrs={
Object {
"width": 18,
Expand Down Expand Up @@ -807,7 +807,7 @@ Debug: 1 1",
"calls": Array [
Array [
Object {
"icon": <Classify(Icon)
"icon": <Icon
attrs={
Object {
"width": 18,
Expand Down Expand Up @@ -842,7 +842,7 @@ Debug: 1 1",
"calls": Array [
Array [
Object {
"icon": <Classify(Icon)
"icon": <Icon
attrs={
Object {
"width": 18,
Expand Down Expand Up @@ -2923,7 +2923,7 @@ ReactTestInstance {
"calls": Array [
Array [
Object {
"icon": <Classify(Icon)
"icon": <Icon
attrs={
Object {
"width": 18,
Expand Down Expand Up @@ -2958,7 +2958,7 @@ Debug: undefined undefined",
"calls": Array [
Array [
Object {
"icon": <Classify(Icon)
"icon": <Icon
attrs={
Object {
"width": 18,
Expand Down Expand Up @@ -2993,7 +2993,7 @@ Debug: undefined undefined",
"calls": Array [
Array [
Object {
"icon": <Classify(Icon)
"icon": <Icon
attrs={
Object {
"width": 18,
Expand Down Expand Up @@ -3028,7 +3028,7 @@ Debug: undefined undefined",
"calls": Array [
Array [
Object {
"icon": <Classify(Icon)
"icon": <Icon
attrs={
Object {
"width": 18,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Array [
className="root"
>
<svg
className="icon"
fill="none"
height={18}
stroke="currentColor"
Expand Down Expand Up @@ -251,6 +252,7 @@ Array [
className="root"
>
<svg
className="icon"
fill="none"
height={18}
stroke="currentColor"
Expand Down Expand Up @@ -441,6 +443,7 @@ Array [
className="root"
>
<svg
className="icon"
fill="none"
height={18}
stroke="currentColor"
Expand Down Expand Up @@ -523,6 +526,7 @@ Array [
className="root"
>
<svg
className="icon"
fill="none"
height={18}
stroke="currentColor"
Expand Down Expand Up @@ -673,6 +677,7 @@ Array [
className="root"
>
<svg
className="icon"
fill="none"
height={18}
stroke="currentColor"
Expand Down Expand Up @@ -755,6 +760,7 @@ Array [
className="root"
>
<svg
className="icon"
fill="none"
height={18}
stroke="currentColor"
Expand Down Expand Up @@ -895,6 +901,7 @@ Array [
className="root"
>
<svg
className="icon"
fill="none"
height={18}
stroke="currentColor"
Expand Down Expand Up @@ -977,6 +984,7 @@ Array [
className="root"
>
<svg
className="icon"
fill="none"
height={18}
stroke="currentColor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports[`renders closed shell with no active item 1`] = `
className="root"
>
<svg
className="icon"
fill="none"
height="24"
stroke="currentColor"
Expand Down Expand Up @@ -72,6 +73,7 @@ exports[`renders open drawer with active item 1`] = `
className="root"
>
<svg
className="icon"
fill="none"
height="24"
stroke="currentColor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,27 @@ exports[`renders form with data 1`] = `
type="button"
>
<span
className="content"
className="root"
>
<span
className="root"
<svg
className="icon"
fill="none"
height={22}
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
viewBox="0 0 24 24"
width={22}
xmlns="http://www.w3.org/2000/svg"
>
<svg
fill="none"
height={22}
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
viewBox="0 0 24 24"
width={22}
xmlns="http://www.w3.org/2000/svg"
>
<line
x1="5"
x2="19"
y1="12"
y2="12"
/>
</svg>
</span>
<line
x1="5"
x2="19"
y1="12"
y2="12"
/>
</svg>
</span>
</button>
<span
Expand Down Expand Up @@ -115,36 +112,33 @@ exports[`renders form with data 1`] = `
type="button"
>
<span
className="content"
className="root"
>
<span
className="root"
<svg
className="icon"
fill="none"
height={20}
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
viewBox="0 0 24 24"
width={20}
xmlns="http://www.w3.org/2000/svg"
>
<svg
fill="none"
height={22}
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
viewBox="0 0 24 24"
width={22}
xmlns="http://www.w3.org/2000/svg"
>
<line
x1="12"
x2="12"
y1="5"
y2="19"
/>
<line
x1="5"
x2="19"
y1="12"
y2="12"
/>
</svg>
</span>
<line
x1="12"
x2="12"
y1="5"
y2="19"
/>
<line
x1="5"
x2="19"
y1="12"
y2="12"
/>
</svg>
</span>
</button>
</div>
Expand Down
Loading