material-components-web icon indicating copy to clipboard operation
material-components-web copied to clipboard

CSS margin-top should be used instead of padding-top in mdc-top-app-bar--fixed-adjust class

Open mindaugasvcs opened this issue 1 year ago • 0 comments

https://github.com/material-components/material-components-web/blob/f80ac92b08dfa1b59cd9faf74f3d19a4b134993e/packages/mdc-top-app-bar/mdc-top-app-bar.scss#L204

  1. CSS margin is used to push element.
  2. CSS padding is used to push element's boundaries.

Now if I use the drawer with top-app-bar then drawer's border will be visible on the top-app-bar.

mindaugasvcs avatar May 10 '24 09:05 mindaugasvcs