-
Notifications
You must be signed in to change notification settings - Fork 110
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
Create HTML templates for modals #1425
Conversation
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 seems like a good step in the right direction. Is there a way to bundle the template html with its corresponding CSS as well?
Unlike HTML, the CSS for modal Figuring out all the CSS used for modals may be out of scope of this PR. It requires extracting modals CSS into 2 files |
* reuse modals * refactor * only load templates when needed * lint * shared-modals * lint * type * lint * lint
Fixes #1419
Add loading template modals for
ModalController
from a list of template names.Currently having 2 templates (which should have better naming)
welcome-modals
: Modals shared between welcome and settings page.settings-modals
: Modals in settings page onlyIf this is too vague then we can refactor to multiple templates where each contains a group of modals for a specific setting like:
profile-modals
,custom-css-modals
,anki-cards-modals
, etc. then each page will load the required templates.