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

[Top App Bar] Make more clear, that top app bar is only colorized on scrolling #3200

Open
WebTiger89 opened this issue Feb 1, 2023 · 1 comment
Assignees

Comments

@WebTiger89
Copy link

I refer to the material3 components site: https://m3.material.io/components/top-app-bar/overview

Could you please adjust the documentation about the top bar component, so that is more clear that the color of the top app bar is always equal to the content, but gets a color fill on scrolling. It would be great if this gets highlighted somewhere because it is confusing to see a colorized top app bar directly on the first page of the component while one is expecting a white/black top app bar like it is promised and previewed by the Theme Builder.

I was wondering why Theme Builder shows a top app bar with a white or black (Surface color: Neutral 99) respectively, based on UI mode but material 3 site partially shows a colorized top app bar. Since background color and surface color are the same the color of the top app bar and the background color (and also the status bar color) always match, that's what the Theme Builder promises in the preview and also in the exported values.

It took some time to understand why some of the visuals on the material3 top app bar site are colorized, especially the one on the first page. It is confusing to see a colorized top app bar when entering the first page of top app bar, expecting something similar the Theme Builder offers.

This is the visual on the first page.
image

It is only colorized because the content is scolled but this isn't clear on first glance. It would be great if this can be made more clear. Maybe don't use any visuals with a colorized top app bar until the Behavior section.

Under guidelines -> Behavior -> scrolling is stated that the color only changes when content is being scrolled, see https://m3.material.io/components/top-app-bar/guidelines#4eab4f50-4a3e-4189-bce2-a46514cde1da

Only upon scrolling, the top app bar container fills with a contrasting color that provides visual separation from the background.

@WebTiger89 WebTiger89 added the bug label Feb 1, 2023
@dsn5ft
Copy link
Contributor

dsn5ft commented Feb 1, 2023

Thanks for the feedback, I agree it should say "on scroll" in a couple places on that Overview page. Will forward this to our design team.

@dsn5ft dsn5ft self-assigned this Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants