Skip to content

Do not make knowledge panels tappable if they contain only a title and no elements #5700

Description

We are going to display a list of ingredients with 1 knowledge panel for each ingredient. In a lot of cases, the panel will just be a title like "Sugar: 50%", and there won't be any content. In that case, we want to display the title, but without an arrow to the right, and without an option to tap it.

It will look something like that:

Image

Here only the corn syrup has extra content and is expandable / tappable.

Currently on the app, panels with no content elements are tappable:

Image

So if a panel has no "elements" or the size of the "elements" is 0, it should just display the element title.

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

Metadata

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions