Problem/Motivation

Edit account UI is beaking, Please check screenshots.

User interface changes

CSS changes for inputs

Comments

manjit.singh’s picture

Issue summary: View changes
lewisnyman’s picture

Title: Edit Account UI broken » Password fields are fixed width on mobile
Priority: Major » Normal
Issue tags: -#frontend, -account edit +frontend
manjit.singh’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
skippednote’s picture

Assigned: Unassigned » skippednote
Status: Needs work » Active

The .element-invisible is the culprit here. It's getting clipped and a height of 1px pixel is being added to it. However there is no width added which is causing an overflowing container. Adding 1px width fixes the problem here.

.element-invisible {
    clip: rect(1px,1px,1px,1px);
    position: absolute!important;
    overflow: hidden;
    height: 1px;
    width: 1px;
}

I'll add a patch as soon as I have access to the development site.

drumm’s picture

See #2045151: width:1px in visually-hidden class causing problems for screen readers in Firefox for a potential problem with width: 1px;

This is also affecting issue pages, in links like report spam<span class="element-invisible"> on user skippednote</span>

drumm’s picture

Assigned: skippednote » Unassigned

Looks like the solution from #2045151: width:1px in visually-hidden class causing problems for screen readers in Firefox is to add both:

  width: 1px;
  word-wrap: normal;

to .element-invisible

drumm’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Assigned: Unassigned » drumm

  • drumm committed 7b49727 on 7.x-2.x
    Issue #2397713: Prevent invisible elements from affecting page width on...
drumm’s picture

Status: Active » Fixed

This was deployed a few days ago, there are now less white margins on the right side of the page on mobile.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.