Skip to content
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

[Feature Request]: ProductSwitch: Number of Items per Line should be responsive #9864

Open
1 task done
bachlge opened this issue Sep 13, 2024 · 3 comments
Open
1 task done

Comments

@bachlge
Copy link

bachlge commented Sep 13, 2024

Feature Request Description

By specification the columns count is determinated by 2 things:

  • items number (if items are > 6 show 4 columns and if they are <= 6 show 3 columns)
  • available screen width (desktop based on items count, tablet 3 and mobile 1)

There is no API to override this default behaviour.

On bigger screens, there is a lot of empty space because of this non-responsive behaviour. See Basic Sample on Playground.

Proposed Solution

ProductSwitch should be fully responsive, determining column number dynamically by available space and make use of the available space.

Proposed Alternatives

Provide public methods for properties like useAllSpace, numColumns, minColumns, maxColumns.
or
Leave it as it is with poor look and feel.

Organization

No response

Additional Context

#9733 (reply in thread)

Priority

None

Privacy Policy

  • I’m not disclosing any internal or sensitive information.
@didip1000
Copy link
Contributor

Hey @SAP/ui5-webcomponents-topic-p,

Can you please take a look at this feature request?

Thank you,
Diana P.

@jvaradi-sap
Copy link

@bachlge Can you share the the full use case how the product switcher is currently used within your product?

@bachlge
Copy link
Author

bachlge commented Oct 16, 2024

I am using ProductSwitch as a nice looking Navigation Menu (just like in the Basic Sample), ca 20 items, half the space is unused (poor look and feel).
Other use case would be to display search result as ProductSwitch items.

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

No branches or pull requests

4 participants