Skip to content

Use computed style to set viewport constants in JS

Warren Gifford requested to merge kr/pull-viewport-values-from-css into main

Created by: courier-new

Following some conversation in Slack, I took a brief look into what this would entail.

Is this a good idea? Maybe! Is this more effective than just hard-coding the values? In theory!

There appear to be lots of ways of doing this. Most ways involve changes to the webpack config, so this is the most lightweight way.

Test plan

Verified breakpoint values are respected when used in JS.

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading