material icon indicating copy to clipboard operation
material copied to clipboard

Unable to copy the Demo source code

Open theshapguy opened this issue 12 years ago • 2 comments

Could you make the code copyable of the angular material website. It is useful to learn. Thanks.

theshapguy avatar Oct 06 '14 00:10 theshapguy

I'm not sure why this got labelled invalid. Is it not reproducable? https://material.angularjs.org/#/material.components.dialog/readme/overview click source and try to select the demo code. @shapath I just add

pre>code.highlight {
  padding: 10px;
  font-weight: 400;
  -webkit-user-select: initial;
}

as a rule in inspector, then the demo code becomes selectable and copyable.

maxwellium avatar Oct 07 '14 07:10 maxwellium

@maxwellium your explanation clarified the issue immediately. Thank you for the the CSS.

ThomasBurleson avatar Oct 07 '14 10:10 ThomasBurleson