-
Notifications
You must be signed in to change notification settings - Fork 293
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
Update "improve your measurement" section mobile design to match Figma #9832
Merged
techanvil
merged 5 commits into
develop
from
enhancement/9830-measurement-section-mobile-poc
Dec 10, 2024
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c5efd89
Update "improve your measurement" section to match mobile design.
techanvil f92cd8d
Fix badge position.
techanvil a06a36d
Review implementation and update tests and VRTs.
benbowler 8971a43
Update CSS to use calc to make left margin clear.
benbowler 06417ac
Update settings group layout to use MDC switch variables.
benbowler 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 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 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 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 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
Binary file modified
BIN
+136 Bytes
(100%)
...Components_First_Party_Mode_FirstPartyModeToggle_Default_0_document_0_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...omponents_First_Party_Mode_FirstPartyModeToggle_Default_0_document_1_medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...Components_First_Party_Mode_FirstPartyModeToggle_Default_0_document_2_large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-399 Bytes
(99%)
...Party_Mode_FirstPartyModeToggle_Server_requirements_fail_0_document_0_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...arty_Mode_FirstPartyModeToggle_Server_requirements_fail_0_document_1_medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...Party_Mode_FirstPartyModeToggle_Server_requirements_fail_0_document_2_large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+473 Bytes
(100%)
...oogle-site-kit_Modules_Ads_Settings_SettingsEdit_Default_0_document_0_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...ogle-site-kit_Modules_Ads_Settings_SettingsEdit_Default_0_document_1_medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...oogle-site-kit_Modules_Ads_Settings_SettingsEdit_Default_0_document_2_large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+465 Bytes
(100%)
...ce/google-site-kit_Modules_Ads_Settings_SettingsEdit_ICE_0_document_0_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4 Bytes
(100%)
...e/google-site-kit_Modules_Ads_Settings_SettingsEdit_ICE_0_document_1_medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...ce/google-site-kit_Modules_Ads_Settings_SettingsEdit_ICE_0_document_2_large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+494 Bytes
(100%)
...oogle-site-kit_Modules_Ads_Settings_SettingsEdit_ICE_PAX_0_document_0_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7 Bytes
(100%)
...ogle-site-kit_Modules_Ads_Settings_SettingsEdit_ICE_PAX_0_document_1_medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7 Bytes
(100%)
...oogle-site-kit_Modules_Ads_Settings_SettingsEdit_ICE_PAX_0_document_2_large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+483 Bytes
(100%)
...ce/google-site-kit_Modules_Ads_Settings_SettingsEdit_PAX_0_document_0_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-11 Bytes
(100%)
...e/google-site-kit_Modules_Ads_Settings_SettingsEdit_PAX_0_document_1_medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7 Bytes
(100%)
...ce/google-site-kit_Modules_Ads_Settings_SettingsEdit_PAX_0_document_2_large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+483 Bytes
(100%)
...oogle-site-kit_Modules_Ads_Settings_SettingsForm_Default_0_document_0_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...ogle-site-kit_Modules_Ads_Settings_SettingsForm_Default_0_document_1_medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...oogle-site-kit_Modules_Ads_Settings_SettingsForm_Default_0_document_2_large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+467 Bytes
(100%)
.../google-site-kit_Modules_Ads_Settings_SettingsForm_Empty_0_document_0_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...google-site-kit_Modules_Ads_Settings_SettingsForm_Empty_0_document_1_medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
.../google-site-kit_Modules_Ads_Settings_SettingsForm_Empty_0_document_2_large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+171 Bytes
(100%)
..._Settings_SettingsForm_FirstPartyModeDisabledWithWarning_0_document_0_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1 Byte
(100%)
...Settings_SettingsForm_FirstPartyModeDisabledWithWarning_0_document_1_medium.png
Oops, something went wrong.
Binary file modified
BIN
-7 Bytes
(100%)
..._Settings_SettingsForm_FirstPartyModeDisabledWithWarning_0_document_2_large.png
Oops, something went wrong.
Binary file modified
BIN
+616 Bytes
(100%)
..._Modules_Ads_Settings_SettingsForm_FirstPartyModeEnabled_0_document_0_small.png
Oops, something went wrong.
Binary file modified
BIN
+34 Bytes
(100%)
...Modules_Ads_Settings_SettingsForm_FirstPartyModeEnabled_0_document_1_medium.png
Oops, something went wrong.
Binary file modified
BIN
+35 Bytes
(100%)
..._Modules_Ads_Settings_SettingsForm_FirstPartyModeEnabled_0_document_2_large.png
Oops, something went wrong.
Binary file modified
BIN
+602 Bytes
(100%)
...ite-kit_Modules_Analytics4_Settings_SettingsEdit_Default_0_document_0_small.png
Oops, something went wrong.
Binary file modified
BIN
-12 Bytes
(100%)
...te-kit_Modules_Analytics4_Settings_SettingsEdit_Default_0_document_1_medium.png
Oops, something went wrong.
Binary file modified
BIN
-18 Bytes
(100%)
...ite-kit_Modules_Analytics4_Settings_SettingsEdit_Default_0_document_2_large.png
Oops, something went wrong.
Binary file modified
BIN
+602 Bytes
(100%)
...le-site-kit_Modules_Analytics4_Settings_SettingsEdit_ICE_0_document_0_small.png
Oops, something went wrong.
Binary file modified
BIN
-12 Bytes
(100%)
...e-site-kit_Modules_Analytics4_Settings_SettingsEdit_ICE_0_document_1_medium.png
Oops, something went wrong.
Binary file modified
BIN
-18 Bytes
(100%)
...le-site-kit_Modules_Analytics4_Settings_SettingsEdit_ICE_0_document_2_large.png
Oops, something went wrong.
Binary file modified
BIN
+668 Bytes
(100%)
...s4_Settings_SettingsEdit_With_first_party_mode_available_0_document_0_small.png
Oops, something went wrong.
Binary file modified
BIN
-6 Bytes
(100%)
...4_Settings_SettingsEdit_With_first_party_mode_available_0_document_1_medium.png
Oops, something went wrong.
Binary file modified
BIN
-14 Bytes
(100%)
...s4_Settings_SettingsEdit_With_first_party_mode_available_0_document_2_large.png
Oops, something went wrong.
Binary file modified
BIN
+295 Bytes
(100%)
..._Settings_SettingsEdit_With_first_party_mode_unavailable_0_document_0_small.png
Oops, something went wrong.
Binary file modified
BIN
-12 Bytes
(100%)
...Settings_SettingsEdit_With_first_party_mode_unavailable_0_document_1_medium.png
Oops, something went wrong.
Binary file modified
BIN
-13 Bytes
(100%)
..._Settings_SettingsEdit_With_first_party_mode_unavailable_0_document_2_large.png
Oops, something went wrong.
Oops, something went wrong.
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.
I'm not sure if this is what @aaemnnosttv had in mind with his suggestion - using
calc()
to add two unnamed values isn't really an improvement on what we had before, it's less readable and introduces an unnecessarycalc()
to add two static values.Unfortunately as things stand I don't see that we can use
calc()
to reference the values of the relevant element dimension/properties. We could do something like this to derive the value:$mdc-switch-track-width
comes from the vendor's mixin and is defined here: https://github.com/material-components/material-components-web/blob/3a1767ea4da308dbee272763a377deff39cf0471/packages/mdc-switch/_variables.scss#L25There 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.
Thanks @techanvil, I couldn't find those variables initially.