-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Update the mobile_guide page to the new design. #30006
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
Conversation
- Extract the CSS & SVGs from the page for easier sync with mobile.element.io - Update the webpack config to copy the extracted SVGs (webpack magic handles the CSS). - Initial implementation of the updated design (still more updates to come). - Allow the page to be configured for Element Classic, X and Pro. fixup
Ok, I don't understand, when I run locally with |
src/vector/mobile_guide/index.css
Outdated
} | ||
|
||
body { | ||
background: #fff; |
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 haven't switched to using var(--cpd-color-*)
yet as I'd like to figure out the best way to make this page easy to copy over to mobile.element.io.
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.
Looks like cpd tokens are already used though? https://github.com/element-hq/element-web/pull/30006/files#diff-f0093dff0cc8dae8e989db7405ba31f0c31e3d52f1596e80f87c3d29c9319157R18
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.
Ok, I've gone through your comments and used all the tokens I could adding comments for the ones that I couldn't:
Specifically I couldn't find an equivalent for the header/p
text colour so I added a comment to that :D
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.
Scratch that last bit, I was told to use text secondary from Compound, updated.
Fixed using |
- Make the linter happy. - Let web pack handle the asset sources.
e324df6
to
e160afb
Compare
Puts the link at the top for now.
51d19ce
to
0a7b23f
Compare
Thank you! Got it working eventually even if it was a bit of a journey (ended up in a Linux VM 🙈). The axe definitely does have a load of violations though 😔 |
0a7b23f
to
be4f9bc
Compare
We might need to fix them, @daniellekirkwood is currently working on a VPAT which commits us to making sure things we build are accessible |
Thank you! Do I need to do anything else to get this merged? Also, please do squash-merge given the history is so noisy on this one :) |
May need reverting as it breaks Windows builds https://github.com/element-hq/element-web/actions/runs/15559495760/job/43808032961 cc @pixlwave |
…30006)" (element-hq#30104) This reverts commit c51823d.
Co-authored-by: Michael Telatynski <[email protected]>
…t X by default. (#30172) * Reapply "Update the mobile_guide page to the new design. (#30006)" (#30104) This reverts commit c51823d. * Use Element X as the default mobile_guide_app_variant when omitted. * Fix a build error on Windows. Additionally revert "Remove unnecessary <%= require %> usages" and let webpack handle all of the assets (without a manual copy rule). * Exclude mobile_guide from coverage gate It has playwright tests * Revert the re-introduction of <%= require %> * Fix snapshot tests on mobile_guide. --------- Co-authored-by: Michael Telatynski <[email protected]>
This PR updates the mobile_guide page to match the new design that we're going to roll out on mobile.element.io (we would like both pages to look the same). It makes the following changes:
mobile_guide/assets
directory (for easy sync with mobile.element.io) and the CSS into an index.css page (adding a new copy rule for the SVGs).mobile_guide_app_variant
toconfig.json
(please let me know if there's a better name or if I missed any steps when adding this).Checklist
public
/exported
symbols have accurate TSDoc documentation.