Bug 2070160 - Copy-to-clipboard and <pre> elements cause display issues for ACM dynamic plugins
Summary: Copy-to-clipboard and <pre> elements cause display issues for ACM dynamic plu...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.11.0
Assignee: Yadan Pei
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-30 14:01 UTC by Steve Goodwin
Modified: 2022-08-10 11:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 11:02:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Block of code has background grey (638.16 KB, image/png)
2022-03-30 14:01 UTC, Steve Goodwin
no flags Details
block of code style (352.82 KB, image/png)
2022-04-26 07:59 UTC, Yadan Pei
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11263 0 None open Bug 2070160: Remove custom classes pre and code element and apply using a custom class. 2022-03-30 20:23:46 UTC
Red Hat Issue Tracker CONSOLE-3112 0 None None None 2022-04-05 16:01:12 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:03:01 UTC

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


Note You need to log in before you can comment on or make changes to this bug.