-
Notifications
You must be signed in to change notification settings - Fork 13
fix: restore authz bg styles but keep content cap to header xl #235
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
Changes from 5 commits
bf5f75b
93dd152
4cc7fb3
d99430c
b806fd0
64fbf37
4d04747
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 |
|---|---|---|
|
|
@@ -18,7 +18,9 @@ interface PermissionTableProps { | |
| const PermissionTable = ({ permissionsTable, roles, title }: PermissionTableProps) => { | ||
| const { formatMessage } = useIntl(); | ||
| return ( | ||
| <Card> | ||
| // The matrix is wider than a narrow viewport once it has a few role columns, so the | ||
| // card scrolls rather than letting the table overflow with no way to reach it. | ||
| <Card className="overflow-auto"> | ||
|
Contributor
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.
|
||
| <table className="permission-table w-100"> | ||
| <thead> | ||
| <tr> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,7 +51,7 @@ const RolesPermissions = () => { | |
| }, [intl]); | ||
|
|
||
| return ( | ||
| <Container className="p-5"> | ||
| <> | ||
| <Container className="pb-5"> | ||
|
Contributor
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. With the outer |
||
| <ButtonGroup size="lg" className="mb-2"> | ||
| <Button | ||
|
|
@@ -80,15 +80,15 @@ const RolesPermissions = () => { | |
| variant="info" | ||
| className="mt-5" | ||
| > | ||
| <div className="row align-items-center"> | ||
| <div className="col col-7"> | ||
| <div className="row align-items-center flex-wrap"> | ||
| <div className="col col-md-7"> | ||
| <p className="text-primary font-weight-bold h4">{intl.formatMessage(messages['authz.tabs.permissionsRoles.courses.alert.title'])}</p> | ||
| <span> | ||
| <span className="font-weight-bold">{intl.formatMessage(messages['authz.tabs.permissionsRoles.courses.alert.note'])}</span> | ||
| {intl.formatMessage(messages['authz.tabs.permissionsRoles.courses.alert.description'])} | ||
| </span> | ||
| </div> | ||
| <div className="col col-5"> | ||
| <div className="col col-md-5 mt-3 mt-md-0"> | ||
|
Contributor
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.
|
||
| <Hyperlink className="d-block text-right h5 font-weight-normal" destination="https://docs.openedx.org/en/latest/educators/references/course_development/course_team_roles.html" target="_blank" showLaunchIcon={false} isInline> | ||
| {intl.formatMessage(messages['authz.tabs.permissionsRoles.courses.alert.link'])} | ||
| </Hyperlink> | ||
|
|
@@ -106,7 +106,7 @@ const RolesPermissions = () => { | |
| /> | ||
| )} | ||
| <AnchorButton /> | ||
| </Container> | ||
| </> | ||
| ); | ||
| }; | ||
|
|
||
|
|
||
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.
Nit: with no subtitle this still renders an empty
<h3>(axeempty-heading). Consider rendering nothing whenpageSubtitleis falsy.