Conversation
TatianaFomina
left a comment
There was a problem hiding this comment.
please fix build errors
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
lets get rid of this param as it is not used at the moment
There was a problem hiding this comment.
lets move it to the useAlert file and rename to the useAlertComposableState
There was a problem hiding this comment.
lets use simple fade-out effect for leaving
| transform: translateY(30px); |
There was a problem hiding this comment.
please look at the updated one, if its good enough
There was a problem hiding this comment.
| transition: opacity 0.5s ease, transform 0.5s ease; | |
| transition: opacity 0.25s ease, transform 0.25s ease; |
There was a problem hiding this comment.
lets rename defaultAlert to alert
There was a problem hiding this comment.
| export type Alertype = 'success' | 'error' | 'warning' | 'info' | 'default'; | |
| export type AlertType = 'success' | 'error' | 'warning' | 'info' | 'default'; |
There was a problem hiding this comment.
lets make it default by default
There was a problem hiding this comment.
as in defaultProps for the variable name?
There was a problem hiding this comment.
it's better to leave the only place with default values. I think this properties are note related to Alerts Container
There was a problem hiding this comment.
probably,alerts returned by useAlert() should include them
There was a problem hiding this comment.
it's better to leave the only place with default values. I think this properties are note related to Alerts Container
its used in Alert container position
There was a problem hiding this comment.
probably,
alertsreturned byuseAlert()should include them
yes I added a defaultAlertOpt on useAlert()
There was a problem hiding this comment.
you have incompatible types of opts, Omit<AlertOptions, 'id'> is not the same as Pick<AlertOptions, 'id' | 'icon' | 'message' | 'timeout'> used in triggerAlert
There was a problem hiding this comment.
still actual, but now opt?: Omit<AlertOptions, 'id'> not equals to opt: AlertOptions
There was a problem hiding this comment.
theme is accepting globally, you don't need to define it on a component level
There was a problem hiding this comment.
probably --base--text-solid-foreground
| background-color: var(--base--solid); | ||
| } | ||
|
|
||
| &--error { | ||
| background-color: var(--base--solid); | ||
| } | ||
|
|
||
| &--warning { | ||
| background-color: var(--base--solid); | ||
| } | ||
|
|
||
| &--info { | ||
| background-color: var(--base--solid); | ||
| } | ||
|
|
||
| &--default { | ||
| background-color: var(--base--bg-secondary); |
There was a problem hiding this comment.
you need to override color with --base--text
codex-ui/dev/Playground.vue
Outdated
codex-ui/dev/Playground.vue
Outdated
There was a problem hiding this comment.
| bottom: 2rem | |
| bottom: var(--spacing-l) |
There was a problem hiding this comment.
redundant duplication. Default props are defined in the Alert.vue
| </div> | ||
| </div> | ||
|
|
||
| <AlertContainer /> |
There was a problem hiding this comment.
lets move it to the root component (Playground.vue) to reuse the single container for the whole app
neSpecc
left a comment
There was a problem hiding this comment.
- bug with type-change on dissapearing
- when the last alert is about to dissapear, it became vertical
- remove left-axis transition
- for dissapering, use only fade-out, for appearing only fade-in
There was a problem hiding this comment.
This has been removed
neSpecc
left a comment
There was a problem hiding this comment.
the bug with color change on leaving still exist
There was a problem hiding this comment.
index works unstable here since it is changing dynamically. Consider removing alert by id instead
There was a problem hiding this comment.
lets try to use requestAnimationFrame instead
|
you have several small visual bugs
|
neSpecc
left a comment
There was a problem hiding this comment.
Make alert animation more smooth
There was a problem hiding this comment.
Please, make alert appearing animation more smooth. Now it is jumping and glitching.


The attached issue #247