Skip to content

Conversation

@RajuSudhar
Copy link

@RajuSudhar RajuSudhar commented Oct 28, 2025

  • Add rightImageUrl property to InputProperties for displaying icon on right side
  • Add filterPattern property to allow custom character filtering beyond default numeric filtering
  • Enhance Input component structure with right content slot and image support
  • Add comprehensive CSS variables for right content and image styling including hover states
  • Update InputButton component styling to remove default input margins and shadows
  • Improve text processing logic with configurable filtering patterns

Dev Proof
Video 1
Video 2

@RajuSudhar RajuSudhar force-pushed the BZ-45242-support-right-icon-in-input-svelte-ui-component branch 4 times, most recently from 5fc2019 to 362112d Compare October 29, 2025 05:50
input {
box-sizing: var(--input-box-sizing, border-box);
height: var(--input-height, fit-content);
height: 100%;

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

Copy link
Author

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;

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

Copy link
Author

@RajuSudhar RajuSudhar Nov 4, 2025

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

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);

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

Copy link
Author

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.

.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));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

backward compatibility if needed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already added

@RajuSudhar RajuSudhar force-pushed the BZ-45242-support-right-icon-in-input-svelte-ui-component branch from 362112d to 3373ce1 Compare November 4, 2025 21:22
- added rightImageUrl property and rightContent slot
- updated css to wrap right content within the input box
- exposed css for right image and right content
@RajuSudhar RajuSudhar force-pushed the BZ-45242-support-right-icon-in-input-svelte-ui-component branch from 3373ce1 to fd4c8f7 Compare November 10, 2025 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants