-
Notifications
You must be signed in to change notification settings - Fork 33
feat: Support right icon in Input component and enhance filtering #142
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
base: release
Are you sure you want to change the base?
feat: Support right icon in Input component and enhance filtering #142
Conversation
5fc2019 to
362112d
Compare
| input { | ||
| box-sizing: var(--input-box-sizing, border-box); | ||
| height: var(--input-height, fit-content); | ||
| height: 100%; |
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.
the component will break for existing places. we can pass 100% from nimble itself. no need of this change
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.
Have already exposed the existing variable for the container that wraps input and right img.
| -webkit-appearance: none !important; /* For Safari MWeb */ | ||
| box-shadow: var(--input-box-shadow, 0px 1px 8px #2f537733); | ||
| border: var(--input-border, none); | ||
| border: none; |
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 removing these? the component will break for other already exiting usecases
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.
Have add the existing exposed properties below in the class input that wraps both input and image.
In Updated Line Number : 264
src/lib/Toast/Toast.svelte
Outdated
| left: var(--toast-left, 0); | ||
| right: var(--toast-right, 0); | ||
| background-color: var(--default-background-color, #87ceeb); | ||
| background-color: var(--toast-default-background-color, #87ceeb); |
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.
background-color: var(--toast-default-background-color, var(--default-background-color, #87ceeb); );
For backward compatibility
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.
Checked in Nimble, Lighthouse and Harbour. Not in use anywhere.
src/lib/Toast/Toast.svelte
Outdated
| .info { | ||
| color: var(--toast-info-text, #fff); | ||
| background-color: var(--toast-background-color, #87ceeb); | ||
| background-color: var(--toast-info-background-color, var(--toast-background-color, #87ceeb)); |
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.
backward compatibility if needed
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.
Already added
362112d to
3373ce1
Compare
- added rightImageUrl property and rightContent slot - updated css to wrap right content within the input box - exposed css for right image and right content
3373ce1 to
fd4c8f7
Compare
Dev Proof
Video 1
Video 2