-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat(ChangelogDialog): change style, add link, events #105
Conversation
Preview is ready. |
2784061
to
26417c2
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.
Look like major updates? cc @amje
No, we don't use it yet. And just add one optional prop |
You don't use, but others could |
26417c2
to
f3666a4
Compare
@Feverqwe Removing prop is breaking change. Mark as deprecated and remove in the next major release |
Ok, I remove breaking changes, and just add link feature and change style |
} | ||
|
||
&__title { | ||
margin: 0; | ||
@include mixins.text-subheader-3(); | ||
@include mixins.text-subheader-2(); | ||
font-weight: 500; |
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.
mixin already has font-weight. Besides it uses variable for that, not a fixed value
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.
fixed, thx!
7286dee
to
a7d7084
Compare
a7d7084
to
fb44861
Compare
@amje I'm add events, rm metrics |
}: ChangelogDialogProps) { | ||
const idRef = React.useRef<number>(); | ||
idRef.current = idRef.current || getNextId(); | ||
const dialogCaptionId = `changelog-dialog-title-${idRef.current}`; | ||
|
||
useEffect(() => { | ||
if (!open) return; |
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.
What the reason to add callback, if you pass open
from outside anyway?
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.
Looks like there is no need to keep this code inside the component
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.
Yes, you are right.
@@ -21,7 +21,9 @@ export interface ChangelogDialogProps { | |||
items: ChangelogItem[]; | |||
disableBodyScrollLock?: boolean; | |||
disableOutsideClick?: boolean; | |||
onOpen: () => void; |
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.
Why it is required?
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.
Remove, will do in parent component
}: ChangelogDialogProps) { | ||
const idRef = React.useRef<number>(); | ||
idRef.current = idRef.current || getNextId(); | ||
const dialogCaptionId = `changelog-dialog-title-${idRef.current}`; | ||
|
||
useEffect(() => { | ||
if (!open) return; |
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.
Looks like there is no need to keep this code inside the component
@@ -17,17 +17,17 @@ $metaWidth: 124px; | |||
} | |||
|
|||
&__label-new { | |||
margin-top: 4px; | |||
margin-top: 8px; |
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.
I guess we should use --g-spacing-2
} | ||
|
||
&__content { | ||
flex: 1; | ||
margin-left: 16px; | ||
margin-left: 20px; |
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.
I guess we should use --g-spacing-5
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.
Replace this and other places too.
No description provided.