Bug 2070160

Summary: Copy-to-clipboard and <pre> elements cause display issues for ACM dynamic plugins
Product: OpenShift Container Platform Reporter: Steve Goodwin <sgoodwin>
Component: Management ConsoleAssignee: Yadan Pei <yapei>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.10CC: aos-bugs, jhadvig
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 11:02:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Block of code has background grey
none
block of code style none

Description Steve Goodwin 2022-03-30 14:01:50 UTC
Created attachment 1869450 [details]
Block of code has background grey

The OCP console has legacy css for <pre> elements which are used in our custom copy to clipboard component. These styles cause incorrect display issues for the ACM dynamic plugin screens that use the <pre> elements. 

These rules need to be scoped or removed and the copy to clipboard component should be updated to the the Patternfly Code Block component, where possible.

Comment 3 Yadan Pei 2022-04-26 07:59:47 UTC
Created attachment 1875015 [details]
block of code style

<pre> element is removed so ACM dynamic plugin screen code blocks has proper style

verified on 4.11.0-0.nightly-2022-04-25-171513 && ACM 2.5.0

Comment 5 errata-xmlrpc 2022-08-10 11:02:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5069