File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
packages/module/src/LogViewer Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ const LogViewerBase: React.FunctionComponent<LogViewerProps> = memo(
312
312
hasLineNumbers && styles . modifiers . lineNumbers ,
313
313
! isTextWrapped && styles . modifiers . nowrap ,
314
314
initialIndexWidth && styles . modifiers . lineNumberChars ,
315
- theme === 'dark' && styles . themeDark
315
+ theme === 'dark' && styles . modifiers . dark
316
316
) }
317
317
{ ...( initialIndexWidth && {
318
318
style : {
Original file line number Diff line number Diff line change 45
45
--pf-v6-c-log-viewer--c-toolbar__group--m-toggle-group--spacer : 0 ;
46
46
--pf-v6-c-log-viewer--c-toolbar__group--m-toggle-group--m-show--spacer : var (--pf-t--global--spacer--sm );
47
47
--pf-v6-c-log-viewer--m-dark__main--BorderWidth : 0 ;
48
+ --pf-v6-c-log-viewer--m-dark__main--BackgroundColor : var (--pf-t--global--background--color--inverse--default );
49
+ --pf-v6-c-log-viewer--m-dark__text--Color : var (--pf-t--global--text--color--inverse );
50
+ --pf-v6-c-log-viewer--m-dark__index--Color : var (--pf-t--global--text--color--inverse );
48
51
display : flex;
49
52
flex-direction : column;
50
53
height : var (--pf-v6-c-log-viewer--Height );
51
54
max-height : var (--pf-v6-c-log-viewer--MaxHeight );
52
55
}
53
- .pf-v6-c-log-viewer .pf-v6-theme-dark {
56
+
57
+ html : not (.pf-v6-theme-dark ) .pf-v6-c-log-viewer .pf-m-dark {
54
58
--pf-v6-c-log-viewer__main--BorderWidth : var (--pf-v6-c-log-viewer--m-dark__main--BorderWidth );
59
+ --pf-v6-c-log-viewer__main--BackgroundColor : var (--pf-v6-c-log-viewer--m-dark__main--BackgroundColor );
60
+ --pf-v6-c-log-viewer__text--Color : var (--pf-v6-c-log-viewer--m-dark__text--Color );
61
+ --pf-v6-c-log-viewer__index--Color : var ( --pf-v6-c-log-viewer--m-dark__index--Color );
55
62
}
56
- .pf-v6-c-log-viewer .pf-v6-theme-dark .pf-v6-c-log-viewer__main {
57
- --pf-v6-c-log-viewer__main--BackgroundColor : var (--pf-t--global--background--color--primary--default );
58
- --pf-v6-c-log-viewer__main--BorderColor : var (--pf-t--global--border--color--default );
59
- --pf-v6-c-log-viewer__text--Color : var (--pf-t--global--text--color--regular );
60
- --pf-v6-c-log-viewer__index--Color : var (--pf-t--global--text--color--subtle );
61
- --pf-v6-c-log-viewer--m-line-numbers__list--before--BackgroundColor : var (--pf-t--global--border--color--default );
62
- }
63
+
63
64
.pf-v6-c-log-viewer .pf-m-wrap-text {
64
65
word-break : break-all;
65
66
}
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export default {
11
11
"logViewerText" : "pf-v6-c-log-viewer__text" ,
12
12
"logViewerTimestamp" : "pf-v6-c-log-viewer__timestamp" ,
13
13
"modifiers" : {
14
+ "dark" : "pf-m-dark" ,
14
15
"wrapText" : "pf-m-wrap-text" ,
15
16
"nowrap" : "pf-m-nowrap" ,
16
17
"lineNumbers" : "pf-m-line-numbers" ,
You can’t perform that action at this time.
0 commit comments