Skip to content

ROU-12924: implement UI for interaction patterns - #1198

Open
BenOsodrac wants to merge 6 commits into
ROU-12714from
ROU-12924
Open

ROU-12924: implement UI for interaction patterns#1198
BenOsodrac wants to merge 6 commits into
ROU-12714from
ROU-12924

Conversation

@BenOsodrac

Copy link
Copy Markdown
Contributor

This pull request introduces support for PhotoSwipe 4.1.0 (used by the OutSystems platform Lightbox Image block) in the Storybook environment, refines the Lightbox overlay chrome restyling, and improves several UI component styles for consistency and accessibility. It also updates dependencies and enhances the InputWithIcon and FloatingActions patterns for better spec compliance and usability.

PhotoSwipe integration and Lightbox restyling:

  • Added photoswipe as a dependency, configured Storybook to serve its assets, and included its CSS and JS in the preview so Lightbox stories accurately reflect platform behavior. The OUI theme now correctly overrides PhotoSwipe's default sprite with icon-font glyphs for overlay chrome. [1] [2] [3] [4]
  • Updated Lightbox overlay styles to remove the vendor sprite and paint overlay controls with design system icon-font glyphs, ensuring visual consistency and accessibility. [1] [2] [3]

InputWithIcon improvements:

  • Enhanced the InputWithIcon component to support a trailing .search-actions slot, reserved proper input padding to prevent overlap, and documented sizing/state variants. Added a comprehensive spec matrix story to visualize all size and state combinations, improving test coverage and documentation. [1] [2] [3]

FloatingActions and RangeSlider refinements:

  • Updated FloatingActions to use new design token variables for hover/press states and increased the button font size for better alignment with design specs. [1] [2] [3]
  • Improved RangeSlider’s disabled state: the track and connect colors now match design intent, and the value label remains readable when disabled. Focus handling for the slider handle now uses the correct border color variable to avoid unwanted color overrides. [1] [2] [3] [4]

Dependency updates:

  • Updated outsystems-design-tokens to version 1.4.1 for the latest design token values.

Checklist

  • tested locally
  • documented the code
  • clean all warnings and errors of eslint
  • requires changes in OutSystems (if so, provide a module with changes)
  • requires new sample page in OutSystems (if so, provide a module with changes)

@BenOsodrac BenOsodrac added enhancement New feature or request chore labels Aug 6, 2026
# Conflicts:
#	src/scss/01-foundations/_icon-library-odc.scss
#	src/scss/04-patterns/03-interaction/_floating-actions.scss
#	src/scss/04-patterns/03-interaction/range-slider/_rangeslider.scss
@sonarqubecloud

sonarqubecloud Bot commented Aug 6, 2026

Copy link
Copy Markdown

@BenOsodrac
BenOsodrac marked this pull request as ready for review August 6, 2026 12:14
@BenOsodrac
BenOsodrac requested a review from a team as a code owner August 6, 2026 12:14
@gnbm gnbm changed the title ROU-12924: imlpement UI for interaction patterns ROU-12924: implement UI for interaction patterns Aug 6, 2026
Comment on lines +18 to 19
--osui-floating-actions-button-background-hover: #{variables.$token-bg-primary-base-hover};
--osui-floating-actions-button-background-press: #{variables.$token-bg-primary-base-press};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be

Suggested change
--osui-floating-actions-button-background-hover: #{variables.$token-bg-primary-base-hover};
--osui-floating-actions-button-background-press: #{variables.$token-bg-primary-base-press};
--osui-floating-actions-button-background-hover: var(--color-primary-hover);
--osui-floating-actions-button-background-press: var(--color-primary-selected);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the floating action's icons are slightly smaller than in Figma.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should fix the .input-with-icon-content-icon color to token-icon-default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants