community icon indicating copy to clipboard operation
community copied to clipboard

Spacing Around Column and Callout frames Increases When Type Size Is Increased

Open eringeorgen opened this issue 4 years ago • 2 comments

Describe the bug Issue occurs several different browser windows, when the Type size is increased. The spacing around the column (top, bottom, left, right) also increases causing the Column to become very narrow. It does not occur on mobile device using Chrome. The issue is also seen with Callout content except that it appears to perform as expected on Chrome on my desktop (instead of just on mobile in Chrome).

To Reproduce Steps to reproduce the behavior:

  1. Go to resources/technical-content/palette-recipes using a mobile device or a narrow desktop browser window. (Not Chrome on mobile).
  2. Scroll down to the examples below the "Column" heading and adjust the type size in the browser
  3. See Error
  4. Repeat on mobile using Chrome for a comparison

Expected behavior The spacing around Column content should not increase when users increase the size of the type in the browser. The Column width should remain constant regardless of type size.

Screenshots On mobile Safari (default type vs increased type size) IMG_4652 IMG_4651

Desktop, minimized Browser window Screen Shot 2020-09-15 at 7 12 19 PM Screen Shot 2020-09-15 at 7 13 43 PM Screen Shot 2020-09-15 at 9 07 57 PM Screen Shot 2020-09-15 at 9 07 20 PM

Desktop, full width Browser window Chrome (default vs enlarged type) Screen Shot 2020-09-15 at 7 02 57 PM Screen Shot 2020-09-15 at 7 03 46 PM Firefox (default and two different increases in type) Screen Shot 2020-09-15 at 9 09 14 PM Screen Shot 2020-09-15 at 9 15 12 PM Screen Shot 2020-09-15 at 9 10 27 PM

Chrome on mobile (example of what is expected) IMG_4648 IMG_4649

Desktop (please complete the following information):

  • OS: Catalina version 10.15.6
  • Browsers: Chrome, Firefox

Smartphone (please complete the following information):

  • Device: iPhone SE
  • Browsers: Safari, Chrome

Additional context The issue can be seen on all pages with Column content in use and to all types of columns (Full Width, Sibling, with Header). The issue is also seen with Callout content except that Callout content appears to perform as expected on Chrome on my desktop (in addition to Chrome on my mobile device).

eringeorgen avatar Sep 16 '20 04:09 eringeorgen

@eringeorgen From what I can tell with my tests and your screenshots the column paddings are the same expected pixel densities. Font size changes on mobile are actually zooming in the screen (CMD and + on desktop), so this isn't an issue we can fix.

@twblack88 This is a similar wont fix as to makerdao/community-portal#439 with a possible solution being makerdao/community#858.

These kinds of fixes are difficult to tackle because there's only so much font size change support we can provide and there aren't selectors in css available to check what a device browser's current font size is.

MaximumCrash avatar Sep 17 '20 22:09 MaximumCrash

Changing this to deprioritize. I attempted to experiment with this issue, but it's more so that these kinds of visual requests need to go to Shea prior to them coming to developers.

MaximumCrash avatar Sep 23 '20 22:09 MaximumCrash

closing legacy issues

ghost avatar Jan 27 '23 11:01 ghost