-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CONSOLE-2361: Conversion of bootstrap table column and visibility classes to similar PF4 classes #9440
CONSOLE-2361: Conversion of bootstrap table column and visibility classes to similar PF4 classes #9440
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -478,10 +478,10 @@ const Graph: React.FC<GraphProps> = ({ | |
}; | ||
|
||
const tableSilenceClasses = [ | ||
classNames('col-sm-5', 'col-xs-8'), | ||
classNames('col-md-2', 'col-sm-3', 'hidden-xs'), | ||
classNames('col-md-3', 'col-sm-4'), | ||
classNames('col-md-2', 'hidden-sm'), | ||
'pf-u-w-50 pf-u-w-33-on-sm', | ||
'pf-m-hidden pf-m-visible-on-sm pf-m-hidden-on-md pf-m-visible-on-lg', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems like other instances the sizes descend from largest to smallest. Would be good to be consistent. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I updated the sizes to consistent. Going from sm > md > lg > xl >2xl since PF rules apply to |
||
'', | ||
'pf-m-hidden pf-m-visible-on-sm', | ||
Kebab.columnClass, | ||
]; | ||
|
||
|
@@ -1218,10 +1218,10 @@ const SilencesDetailsPage = withFallback( | |
); | ||
|
||
const tableAlertClasses = [ | ||
classNames('col-sm-6', 'col-xs-8'), | ||
classNames('col-sm-2', 'hidden-xs'), | ||
classNames('col-sm-2', 'col-xs-3'), | ||
classNames('col-sm-2', 'col-xs-3'), | ||
'pf-u-w-50 pf-u-w-33-on-sm', | ||
'pf-m-hidden pf-m-visible-on-sm', | ||
'', | ||
'pf-m-hidden pf-m-visible-on-sm', | ||
Kebab.columnClass, | ||
]; | ||
|
||
|
@@ -1460,10 +1460,10 @@ export const alertStateFilter = (): RowFilter => ({ | |
}); | ||
|
||
const tableRuleClasses = [ | ||
classNames('col-sm-4', 'col-xs-6'), | ||
classNames('col-sm-2', 'hidden-xs'), | ||
classNames('col-sm-3', 'col-xs-4'), | ||
classNames('col-sm-2', 'col-xs-2'), | ||
'pf-u-w-50 pf-u-w-33-on-sm', | ||
'pf-m-hidden pf-m-visible-on-sm', | ||
'', | ||
'pf-m-hidden pf-m-visible-on-sm', | ||
]; | ||
|
||
const RuleTableRow: RowFunction<Rule> = ({ index, key, obj, style }) => ( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like other instances the sizes descend from largest to smallest. Would be good to be consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the sizes to consistent. Going from sm > md > lg > xl >2xl since PF rules apply to
*-on-{size}
and larger.And
pf-u-w-{width}
rule precedespf-u-w-{width}-on-{size}