-
Notifications
You must be signed in to change notification settings - Fork 246
change(design) : New component Announcement #4140
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
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
33aeb88
to
16117e3
Compare
35cd916
to
ba12cdc
Compare
ea4944b
to
b262280
Compare
c3365b3
to
b8c0e52
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4140 +/- ##
===========================================
+ Coverage 83.26% 83.28% +0.01%
===========================================
Files 1885 1886 +1
Lines 49121 49188 +67
Branches 5770 5777 +7
===========================================
+ Hits 40901 40965 +64
- Misses 6144 6145 +1
- Partials 2076 2078 +2 ☔ View full report in Codecov by Sentry. |
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.
Thanks, 2 small remarks, but not blocking!
import io.element.android.libraries.ui.strings.CommonStrings | ||
|
||
@Composable | ||
fun Announcement( |
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.
Could be nice to comment with the Figma link, for future ref.
|
||
@Immutable | ||
sealed interface AnnouncementType { | ||
data class Informative(val isError: Boolean = false) : AnnouncementType |
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.
Small note about the parameter isError
, maybe rename to isCritical
to match the Compound semantic?
|
Content
Introduce Announcement component with 2 types :
Motivation and context
https://www.figma.com/design/G1xy0HDZKJf5TCRFmKb5d5/Compound-Android-Components?node-id=2002-2154&m=dev
Screenshots / GIFs
Tests
Tested devices
Checklist