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

Existing documentation is missing at material-web.dev

Open shadow-identity opened this issue 2 years ago • 4 comments

Description

I found that few documents from the /docs folder are missing at https://material-web.dev/:

  • Elevation https://github.com/material-components/material-web/blob/main/docs/components/elevation.md
  • Divider https://github.com/material-components/material-web/blob/main/docs/components/divider.md
  • Focus ring https://github.com/material-components/material-web/blob/main/docs/components/focus-ring.md
  • Icon https://github.com/material-components/material-web/blob/main/docs/components/icon.md

shadow-identity avatar Dec 08 '23 08:12 shadow-identity

Ah they are there but there are no links to them because they are missing the frontmatter to create links on the side. Additionally, they are missing demos and title formatting. Thanks for the report, I don't think these were on our radar

e111077 avatar Dec 12 '23 00:12 e111077

I'm trying to add <md-elevation> to a <div> without any joy; the example code given shows the we just place <md-elevation> within the div and style the div using --md-elevation-level: 3; but that doesn't seem to have any effect.

Any chance of an update to the docs or a real simple example>

davie-robertson avatar Apr 03 '24 19:04 davie-robertson

@davie-robertson I copied the doc's elevation usage example, and it works: https://jsbin.com/sazemosawu/edit?html,output

Feel free to open a Q&A discussion if you're still having trouble and we can help you more there.

asyncliz avatar Apr 03 '24 19:04 asyncliz

thanks @asyncLiz - I had missed the one key instruction; "The elevation will automatically fill the nearest position: relative element's size and shape."

davie-robertson avatar Apr 03 '24 20:04 davie-robertson