I am having following code
.flex {
  display: flex;
  width: 100%;
  height: 48px;
  background: black;
  flex-direction: row
}
.flex-item {
  height: 100%;
  background: grey
}<button class="flex">
  <div class="flex-item">
    Click Me
  </div>
</button>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>
 
     
    