-
Notifications
You must be signed in to change notification settings - Fork 40
increase viewport width from 600 to 1024px #379
Conversation
14e960d
to
88f3b45
Compare
looks like you had a bad merge and reverted some previous code changes |
035e4f4
to
27453f8
Compare
@@ -441,7 +441,7 @@ | |||
}, | |||
"app-path": { | |||
"version": "2.2.0", | |||
"resolved": "https://onedrive.pkgs.visualstudio.com/_packaging/odsp-npm/npm/registry/app-path/-/app-path-2.2.0.tgz", |
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.
Fixed paths here.
@@ -2,7 +2,7 @@ | |||
|
|||
Basic usage: | |||
|
|||
```js { "props": { "data-description": "basic" } } | |||
```js { "props": { "data-description": "basic", "data-action-states": "[{\"action\":\"none\",\"wait\":\"50\"}]" } } |
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.
Added wait to allow faster browser execution. (slowMo
reduce from 40 to 10ms)
@@ -2,15 +2,15 @@ | |||
|
|||
Basic usage: | |||
|
|||
```js { "props": { "data-description": "basic" } } | |||
```js { "props": { "data-description": "basic", "data-action-states": "[{\"action\":\"none\",\"wait\":\"100\"}]" } } |
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.
Added wait to allow faster browser execution. (slowMo
reduce from 40 to 10ms)
@@ -7,6 +7,7 @@ module.exports = Object.assign({}, config, { | |||
require: config.require.concat([path.resolve(__dirname, 'assets/disable-animations.css')]), | |||
propsParser: () => ({}), // Faster without parsing props. They're not needed for diffs. | |||
theme: { | |||
maxWidth: 632, |
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.
What does this key do?
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.
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.
Ah, understood.
This will enable us to test the interactive states of the dropdown component. Currently the
The open state is rendering as side panel rather than a callout, because the viewport we set for puppeteer is so narrow that it triggers "responsive mode".
This also allows us to better test direction hints on callouts, which were currently rendering in the center because of the viewports size.
The reference images are able to stay the same width, because I hardcoded a max-width on the style guide to match the current width.
Unfortunately, a side effect of the viewport width change is that there are some virtually undetectable changes to pixels that will require us to update about 90 of the reference images. It seems mostly related to rounded corners, shadows and Illustrations.
One image actually changed, because the direction hint is now being accepted.
config/styleguide-visual/reference/Hovercard_alignments_hover_desktop.png
Additionally, I've included a fix for #375, by adding a
wait
to the specific example. Fixing this, allows us to reduceslowMo
from 40 to 10.This also revealed a MenuButton bug, filed here:
#421