Skip to content

striped does nothing on tables anymore #279

@rmehner

Description

@rmehner

Expected Behavior

Applying striped to a <table> should make the rows striped based on odd/even.

See this screenshot from 1.0.0 documentation: expected

Current Behavior

It does nothing. Table stays unstriped. highlight does work as expected though. You can see it not working on the official docs too: https://materializecss.github.io/materialize/table.html (compare with v1.0.0 here: https://materializecss.com/table.html)

Screenshot from current documentation: current

Possible Solution

The offending commit and the lines are here: 55e4854#diff-7d50d61152c39227f20098330f8691eee64bbf47d6f0e8df9225a30587b930d0L411-L420 ... it was removed. Don't see any reasoning behind it, but I might be missing context. Given that it's documented other wise, it's either a matter of removing that from the documentation or to bring those lines back in.

My current solution is to add those line into the application scss.

Steps to Reproduce (for bugs)

  1. Go to https://materializecss.github.io/materialize/table.html
  2. Click on "Striped" on the navigation on the right

Your Environment

  • Version used: 1.1.0
  • Browser Name and version: Chrome Version 105.0.5195.125 (Official Build) (x86_64
  • Operating System and version (desktop or mobile): macOS 12.6

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcss/sassFor something that related to styling/viewhelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions