-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add PromptOAuth component #44
Conversation
This allows for the UI of a tool to continue to be shown, but for a prompt to grant access to be overlaid on-top. This was added as a new component as it's behaviour is quite different to the existing OAuth component in that it doesn't have any child components.
</Modal.Header> | ||
<Modal.Body> | ||
<View as='div'> | ||
Please grant permission to load this content. This is a one-time (two-step) authorisation. |
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.
This sentence I had to read twice , since for me brackets imply non-necessary further detail.
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 know, I don't like the message at all.
// what content is waiting on the OAuth grant. For example in the Module Titles | ||
// there may be other content in the page that doesn't require the granting of | ||
// permission | ||
background: 'rgba( 200, 200, 200, 0.5 )' |
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.
css or we do stuff inline too these days if it's one-off/small?
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.
Sorry, what are you suggesting here? We need to override the theme variables as documented: https://instructure.design/#using-theme-overrides
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.
ah ok
// This is to grey out the background behind the modal more so that it's clear | ||
// what content is waiting on the OAuth grant. For example in the Module Titles | ||
// there may be other content in the page that doesn't require the granting of | ||
// permission |
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.
Nice explanation
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.
lgtm
This allows for the UI of a tool to continue to be shown, but for a prompt to grant access to be overlaid on-top.
This was added as a new component as it's behaviour is quite different to the existing OAuth component in that it doesn't have any child components.