Description of problem: Remove pf-c-code-block__pre when pf supports passing classnames to the copytoclipboard component Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Checked on ocp 4.11 cluster with payload 4.11.0-0.nightly-2022-05-25-193227. Go to one secret detail page, check the copy-to-clipboard function, could copy successfully. Check the copied text element: <pre class="pf-c-code-block__pre co-copy-to-clipboard__text" data-test="copy-to-clipboard"><code class="pf-c-code-block__code">AKIAJQ56NS6LSXPMTPOQ</code></pre> There is still "pf-c-code-block__pre" in "class" property. @Joe, is it correct? pls refer to screenshot.
Move back to ASSIGNED for dev to investigate the fix.
@yanpzhan this is ok, as long as we're not using the code-block__pre in the classNames prop directly in the <CodeBlockCode/> component in the copy-to-clipboard.tsx file
OpenShift has moved to Jira for its defect tracking! This bug can now be found in the OCPBUGS project in Jira. https://issues.redhat.com/browse/OCPBUGS-9248
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days