-
Notifications
You must be signed in to change notification settings - Fork 9
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
reCAPTCHA: Spacing and template refactor #2588
Open
machikoyasuda
wants to merge
14
commits into
feat/2541-recaptcha-add-link-hide-flag
Choose a base branch
from
feat/2540-recaptcha-realign
base: feat/2541-recaptcha-add-link-hide-flag
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
reCAPTCHA: Spacing and template refactor #2588
machikoyasuda
wants to merge
14
commits into
feat/2541-recaptcha-add-link-hide-flag
from
feat/2540-recaptcha-realign
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
back-end
Django views, sessions, middleware, models, migrations etc.
tests
Related to automated testing (unit, UI, integration, etc.)
front-end
HTML/CSS/JavaScript and Django templates
and removed
tests
Related to automated testing (unit, UI, integration, etc.)
labels
Dec 12, 2024
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
machikoyasuda
force-pushed
the
feat/2540-recaptcha-realign
branch
from
December 12, 2024 19:13
3a72124
to
6fceafb
Compare
…l but forms are good
machikoyasuda
force-pushed
the
feat/2540-recaptcha-realign
branch
from
December 16, 2024 18:12
6fceafb
to
5b76baa
Compare
machikoyasuda
changed the base branch from
refactor/recaptcha-copy
to
feat/2541-recaptcha-add-link-hide-flag
December 16, 2024 20:54
Open question: Would it be useful to have information like #2588 (comment) and #2585 (comment) written up in docs somewhere? It would be documenting what |
machikoyasuda
changed the base branch from
feat/2541-recaptcha-add-link-hide-flag
to
refactor/recaptcha-copy
December 17, 2024 01:07
machikoyasuda
changed the base branch from
refactor/recaptcha-copy
to
feat/2541-recaptcha-add-link-hide-flag
December 17, 2024 02:00
…recaptcha-realign
machikoyasuda
changed the title
reCAPTCHA: Base and spacing refactor
reCAPTCHA: Spacing and template refactor
Dec 17, 2024
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closes #2540
This ticket is mostly a code clean-up ticket, aside from the one actual CSS change in this PR (d671ec7 - which this in it of itself is only bumping something 2 pixels), made possible by all the changes already completed in #2585 #2584 #2573 #2538 #2586. This is mostly for optimizing developer experience in the templates.
What this PR does
explanatory-info
block to further simplify. There are 2 rows: the main content row, and the all to action row. Within the main content row, it's eitherheadline
orinner-content
. That's it. There's 64px between these two rows.index-base
,index--agency-base
,index--cst
,index--mst
... This makes it easier for developers to look at a file and see what template is inheriting from where.Documentation
base
template directly, whether to create a new template inheriting from base likeerror-base
, or to create a new template that overrides almost everything.col-lg-6
? Usebase
. Useheadline
,inner-content
andcall-to-action-button
. Do not create any new parent blocks. Examples: Logged Out, Confirm.col-lg-6
, but there are different templates varying by agency or flow? Create a new template that inherits frombase
, end the name of this file withbase
, likesuccess-base
. In this new file, useheadline
for the title and use theinner-content
block for your content, and usecall-to-action-button
for the button. You can create blocks that are children ofinner-content
, but do not create any new parent blocks. When creating files for each agency or flow, try to make sure that the files are only content, like copy or images and basic HTML elements, and put all styling in the template. Examples: Elig Start, Elig Index.main-content
. If it feels hacky to useinner-content
andcall-to-action
, create a new template. Examples: Help, Enrollment Success.Notes
col-lg-6
you don't needcol-12 col-sm-12
. 12 is the default.Ideals