-
Notifications
You must be signed in to change notification settings - Fork 1
HS-1390414-CSS-updates #1227
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
Open
wjames111
wants to merge
10
commits into
master
Choose a base branch
from
HS-1390414-CSS-updates
base: master
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
HS-1390414-CSS-updates #1227
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
8f6be13
scope css for branded-checkout
wjames111 ec6ab02
Updates to just use 1 fade animation.
wjames111 6faf93e
Updates class names to use prefix give- for loading elements.
wjames111 f4585d3
Attempt to fix layout shift.
wjames111 0d4a6c4
Move loading.scss to be imported from branded-checkout.scss and style…
wjames111 0fe7687
Revert changes for layout shifts.
wjames111 772ab07
fixup! scope css for branded-checkout
wjames111 1f382e8
Fix for layout shifts.
wjames111 1a9e9c5
Reverts branded-checkout-step-1 loading placement.
wjames111 1ad1ec8
Adds comment for loading layout shift css.
wjames111 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2
src/app/profile/yourGiving/stopStartRecurringGifts/stopStartRecurringGifts.modal.tpl.html
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,5 +9,4 @@ | |
| @import "./oktaSigninWidget"; | ||
| @import "./signOut"; | ||
| @import "./resetPassword"; | ||
|
|
||
|
|
||
| @import "./loading"; | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,18 @@ | ||
| <div ng-class="{ | ||
| 'loading-centered': $ctrl.type === 'centered' || $ctrl.type === 'overlay' || $ctrl.type === 'fixed', | ||
| 'loading-overlay': $ctrl.type === 'overlay' || $ctrl.type === 'fixed', | ||
| 'loading-fixed': $ctrl.type === 'fixed', | ||
| 'icon-first': $ctrl.iconFirst | ||
| 'give-loading-centered': $ctrl.type === 'centered' || $ctrl.type === 'overlay' || $ctrl.type === 'fixed', | ||
| 'give-loading-overlay': $ctrl.type === 'overlay' || $ctrl.type === 'fixed', | ||
| 'give-loading-fixed': $ctrl.type === 'fixed', | ||
| 'give-icon-first': $ctrl.iconFirst | ||
| }"> | ||
| <div> | ||
| <span ng-class="$ctrl.inline ? 'mr-' : 'center-block'"> | ||
| <ng-transclude></ng-transclude> | ||
| </span> | ||
| <span class="loading-wrap"> | ||
| <span class="loading-bar loading1"></span> | ||
| <span class="loading-bar loading2"></span> | ||
| <span class="loading-bar loading3"></span> | ||
| <span class="loading-bar loading4"></span> | ||
| <span class="give-loadingWrap"> | ||
| <span class="give-loading-bar give-loading1"></span> | ||
| <span class="give-loading-bar give-loading2"></span> | ||
| <span class="give-loading-bar give-loading3"></span> | ||
| <span class="give-loading-bar give-loading4"></span> | ||
| </span> | ||
| </div> | ||
| </div> |
This file contains hidden or 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
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.
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 is much less likely to conflict, however, a give prefix on a give page is still pretty generic. .bc, .cbc or .branded-checkout is much better and less likely to conflict.
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 think, however:
is fine, with the assumption that other components are properly scoping their css as well.
Except for the animation name since it can't be scoped.
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.
So I didn't use bc or cbc because this stylesheet is being used by both branded checkout and standard checkout. Also the reason why it isn't scoped. I thought about creating a separate stylesheet for this but that would mean creating an entirely separate component, unlike the other stylesheets this one is imported directly into the component. Not sure what the best workaround is.
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 don't know the specifics of the project(s), but for branded checkout would not including the loader css directly but adding it as
@includerule similar to@import '../cru-scss/cru';work? Seems like a simple solution that will scope the css just like the rest of it.That would leave only the animation name out of scope and I think give-fade is unique enough to not likely collide.
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.
That could work, might be a good solution. Worried there's a reason certain components import the stylesheet directly rather then just import them. I'll try doing that and do some testing.