Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

flex button child height not accepting 100 percent #282

Description

@nirvparekh

I am having following html markup

<button class="flex">
  <div class="flex-item">
    Click Me
  </div>
</button>

and css applied:

.flex {
  display: flex;
  width: 100%;
  height: 48px;
  background: black;
  flex-direction: row
}
.flex-item {
  height: 100%;
  background: grey
}

The problem is, parent node is <button> with flex-direction: row, child element does not accept height in percentage.
height in percentage only works if parent node is <div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions