ASU / asu-unity-stack

ASU Unity Design System
https://unity.web.asu.edu/
Other
11 stars 8 forks source link

fix(unity-bootstrap-theme): fix form fields #1161

Closed Bob-E closed 1 year ago

Bob-E commented 1 year ago

fix form fields border that's causing jumping

Description

Description of problem: In Webforms, when a user focuses on a field, a 1px border is added. This changes the element height, and causes the content to jump.

Solution: By replacing the added 1px border on the focus state with 1px of box-shadow of the same color, the jumpiness when clicking into the fields is eliminated.

While working on this, I encountered another issue with the success and alert fields, given both have an 8px bottom border. In order to retain the 8px bottom border, I had to create focus states of these individual styles.

Links

Checklist

Browsers

Images

Field focus state border causing jumpiness

field-borders-growing

fixed field focus states

field-borders-fixed

Bob-E commented 1 year ago

https://asudev.jira.com/browse/UDS-1474