Skip to content

ListSubheader: disableGutters #12563

@johannwagner

Description

@johannwagner

Hey Guys,

I just wanted to use a Subheader in a list with ListItems, which uses the disableGutters flag. But there is no disableGutters flag on the ListSubheader.

Is this intended behaviour or just a bug?

  • This is a v1.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

There should be a disableGutters flag on ListSubheader.

Current Behavior

There is no disableGutters flag on ListSubheader.

Steps to Reproduce

Link: https://codesandbox.io/s/p0xmqjoj0

Context

I want to accomplish, that the ListSubheader is in the same vertical row as the ListItems

If this is not intended and should be fixed, I would be very pleased to create a PR!

Your Environment

Tech Version
Material-UI v1.5.0
React 16.4.2
Browser Chromium Version 68

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGreat for first contributions. Enable to learn the contribution process.scope: listChanges related to the listtype: new featureExpand the scope of the product to solve a new problem.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions