Skip to content

M3 tabs spec issues #128696

Closed
Closed

Description

@guidezpl

Spec

image

Flutter

image

Layout

Motion

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    on Jun 12, 2023
  2. self-assigned this
    on Jun 12, 2023
  3. moved this to 🗺 Planned in Material 3on Jun 12, 2023
  4. TahaTesser commented on Jun 14, 2023

    @TahaTesser
    Contributor

    Thanks so much, @guidezpl for filing. Some of the changes will produce golden changes.

    #125974 also produces golden changes, I'd wanna land it first before proceeding with this issue.

    cc: @Piinks

  5. Piinks commented on Jun 14, 2023

    @Piinks
    Contributor

    I agree, the changes in #125974 have been very challenging to land with minor changes like this affecting thousands of screenshot tests. Let's land that first before tackling this. And when we do tackle this, it will be immensely easier to just make singular atomic changes at a time. That way the any affected screenshot is easy to debug since we are only lookin for one change at a time.

  6. guidezpl commented on Jun 15, 2023

    @guidezpl
    MemberAuthor

    Thank you! This is one of the more heavily used components for sure.

  7. TahaTesser commented on Sep 8, 2023

    @TahaTesser
    Contributor

    I'll make progress on this issue right after my vacation.

  8. TahaTesser commented on Oct 3, 2023

    @TahaTesser
    Contributor

    The height of the primary tabs component with icons is described as 64dp. In Flutter it appears to be 74dp.

    While the web specs say 64dp, actual TabLayout size is 72dp in Android implementation. Maybe the web specs are wrong?

    The text style does not seem to match spec (it's possible this is because I'm on a mac and San Francisco is used on web)
    The distance between the text and tab bottom is too large

    These are two are relatedd to height and web specs for the height don't match the actual implementation.

  9. removed their assignment
    on Nov 30, 2023
  10. davidmartos96 commented on Dec 28, 2023

    @davidmartos96
    Contributor

    @TahaTesser I've looked into the Jetpack compose source and it also uses 72 (jetpack compose Tab source) although the design tokens in the source use the 64 from the spec (tokens in jetpack compose)

    Strangely enough they use the value from the design tokens for the SmallTabHeight (no label)" (source) but not for the LargeTabHeight (icon+label) where the 72 is hardcoded.

    Maybe it's an issue in the Android implementation? The 72 in the Material 3 Jetpack Compose implementation originates from a duplication of the original M2 implementation (https://android-review.googlesource.com/c/platform/frameworks/support/+/1947012), and hasn't been modified since. So maybe it's a small slip-up.

  11. davidmartos96 commented on Jan 22, 2024

    @davidmartos96
    Contributor

    @guidezpl Hello! The 3rd checkbox in the issue description could be checked off, as it has been fixed in #140698

    The last checkbox about the stretch animation is being worked in #141954

  12. added a commit that references this issue on Feb 6, 2024
    37fd173
  13. moved this from 🗺 Planned to ✅ Done in Material 3on Feb 6, 2024
  14. github-actions commented on Feb 20, 2024

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  15. locked as resolved and limited conversation to collaborators on Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    frameworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions