-
Notifications
You must be signed in to change notification settings - Fork 1
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
Calloutコンポーネントに閉じるボタンを追加します #50
Conversation
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.
良さそうに思いましたが1点相談的なコメントしてます!
packages/callout/_mixins.scss
Outdated
&:active, | ||
&.--active { | ||
visibility: visible; | ||
opacity: 100%; | ||
translate: 0 0; | ||
transition: all 0.4s; | ||
} |
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.
callout、表示されているのが基本のような気がするので、むしろ.--hiddenで非表示になるとかの方がいいのかも…?と思いましたがどうなんでしょうね?
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.
mtgでお話ししました
今回の変更ではボタンを追加するスペースを設定する、ということが目的でした。
calloutを非表示にするロジックについては利用者に委ねる方針に決定したため、関連スタイルは不要となりました。
<div className={wrapperClasses.join(' ')}> | ||
<div | ||
className={wrapperClasses.join(' ')} | ||
aria-live="polite" |
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.
この属性が必要かどうかは、trailingに入るボタンによる効果に依るように見受けられるので、もしそうなら不要かなと思いました
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.
75e90b0 の削除忘れでした
ありがとうございます!
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.
🙆♂️
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.
ありがとうございます!🙌
snackbarコンポーネントを参考に、calloutコンポーネントにcloseボタンを追加します。
bodyが1行だった場合に上下方向のズレが発生しますが、複数行になった際を考慮し上下中央揃えは追加せず、利用する際に追加してもらう方針としました。