-
Notifications
You must be signed in to change notification settings - Fork 2
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
New icons: plus-one and minus-one #296
Conversation
return ( | ||
<svg width="1em" height="1em" viewBox="0 0 30 30" fill="none" {...props}> | ||
<circle cx={15} cy={15} r={14.5} fill="#fff" stroke="#B0B0B0" /> | ||
<path fill="#717171" d="M10 14h11v2H10z" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
這裡是不是要改成
fill="currentColor"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kyoyadmoon 有沒有想把 Icon story 的 background 改成有顏色的底!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
這件事印象中之前 @chenesan 在改的時候好像有討論過
忘記後來為什麼沒做了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
others LGTM
export default function SvgMinusOne(props) { | ||
return ( | ||
<svg width="1em" height="1em" viewBox="0 0 30 30" fill="none" {...props}> | ||
<circle cx={15} cy={15} r={14.5} fill="#fff" stroke="#B0B0B0" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2d0b799
to
7fe2f01
Compare
export default function SvgMinusOne(props) { | ||
return ( | ||
<svg width="1em" height="1em" viewBox="0 0 30 30" fill="none" {...props}> | ||
<circle cx={15} cy={15} r={14.5} fill="transparent" stroke="#B0B0B0" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好奇,如果變色的話, circle 的 stroke 要跟著變嗎?
譬如說,在 error status 的情況下,circle stroke 依然維持 #B0B0B0 還是 red?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
最後設計師決定不填滿了,只有改變 stroke 。
734ab0f
to
64ce3a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Purpose
新增兩個改變數量的按鈕,plus-one/minus-one,用來改變交易明細列印設定裡面的預設張數
plus-one: