Closed (fixed)
Project:
Olivero
Version:
8.x-1.0-alpha1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 May 2020 at 07:56 UTC
Updated:
25 Jun 2020 at 07:44 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
komalk commentedComment #3
kostyashupenkoWhere did you reproduce this issue?
On figma we have only 1 type of buttons https://www.figma.com/file/r8uq72Q9weTMVsNUFZKEYH/D9-Theme-Master?node-i... in terms of its size.
Comment #4
komalk commented@kostyashupenko This issue is reproduce in search I attached the screen shot for the reference.
Comment #5
dunebl@kostyashupenko #3 : I have enabled the masquerade module to get this button
Comment #6
komalk commented@DuneBL After enabled the masquerade module reproduce this issue same issue is also reproduce in search box the screen shot attached in #4
Here is the patch for the review also attached the screen shot for the reference.
Comment #7
mherchelThis issue also shows up on the advanced search page. A week or so ago I talked to designer @jwitkowski79, and she approved the change.
Comment #8
mherchelYou'll want to use
min-height: var(--sp3);here. Seecss/src/base/variables.cssComment #9
komalk commented@mherchel Thank you for the feedback.
Covered the point in #8.
Comment #10
kostyashupenkonormally you don't need to set min-height for all existing buttons. If some of buttons should be bigger -> provide a modifier in css, then provide specific class from hooks to your button.
But anyway code should be added after design
Comment #11
dunebl@kostyashupenko :
I think it is not the case: all button should have this height by default as it is the height of the other input component.
Any inline form will lead to this issue.
Comment #12
mherchelComment #13
mherchelCommitted! I tested this out in all browsers, and it looks good.
I made two changes:
1) increased the horizontal padding to 27px
2) moved the rule so it passes linting.
Thanks!
Comment #14
kostyashupenkoMm.. i have to re-open this issue, since one little bug was found.

This commit shows vertical paddings were removed for buttons, which means button-links now has wrong vertical alignment.
This is markup to get links:
So vertical paddings should be re-corrected.
Comment #15
ramya balasubramanian commentedComment #16
ramya balasubramanian commentedHi @kostyashupenko,
I have checked this, yes there is vertical padding added for the button.
To fix the issue we need to add the padding-top 16px but this is the possible variable right now we have --sp0-75: calc(0.75 * var(--sp)); which is equal to 13.5 px
Updated the screenshots when padding-top=16px & padding-top= 13.5px. Please have a look and let me know can we add a new variable ?
16px:

13.5px:

Comment #17
mherchel@kostyashupenko I checked this across various browsers. Where are you seeing this?
Comment #18
mherchelThe answer too #17 is in
a.buttonComment #19
mherchelUpdated patches. Note that the interdiff doesn't include adding back in the config changes.
Comment #20
mhercheldisregard the prev patches. They were intended for another issue!
Comment #21
mherchelThe easiest route here is to set
display: inline-flex;andalign-items: center. And at that point we won't have to worry about if we have different sized versions of the button, or need to create a new variable.Comment #22
mherchelMy thought in #21 doesn't work in IE11
Comment #23
mherchelUpdated. Uses line height to center the text.
Comment #24
mherchelThere's some weird inconsistencies between a.button and input.button across browsers. I'm taking that into account by using at-supports.
Comment #25
mherchelCommitted. Thanks!
Comment #26
ramya balasubramanian commented