Comments

DuneBL created an issue. See original summary.

komalk’s picture

Assigned: Unassigned » komalk
kostyashupenko’s picture

Where 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.

komalk’s picture

StatusFileSize
new54.25 KB

@kostyashupenko This issue is reproduce in search I attached the screen shot for the reference.

dunebl’s picture

@kostyashupenko #3 : I have enabled the masquerade module to get this button

komalk’s picture

Assigned: komalk » Unassigned
Status: Active » Needs review
StatusFileSize
new36.36 KB
new36.31 KB
new61.55 KB
new703 bytes

@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.

mherchel’s picture

This issue also shows up on the advanced search page. A week or so ago I talked to designer @jwitkowski79, and she approved the change.

mherchel’s picture

Issue summary: View changes
Status: Needs review » Needs work
+++ b/css/src/components/button.css
@@ -27,6 +27,7 @@
+  min-height: 54px;

You'll want to use min-height: var(--sp3); here. See css/src/base/variables.css

komalk’s picture

Status: Needs work » Needs review
StatusFileSize
new708 bytes
new684 bytes

@mherchel Thank you for the feedback.
Covered the point in #8.

kostyashupenko’s picture

normally 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

dunebl’s picture

@kostyashupenko :

If some of buttons should be bigger...

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.

mherchel’s picture

Issue tags: +olivero_alpha_2
mherchel’s picture

Status: Needs review » Fixed

Committed! 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!

kostyashupenko’s picture

Status: Fixed » Needs work
StatusFileSize
new27.53 KB

Mm.. 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.
links

This is markup to get links:

<a class="button">Link</a>
<a class="button button--primary">Link</a>

So vertical paddings should be re-corrected.

ramya balasubramanian’s picture

Assigned: Unassigned » ramya balasubramanian
ramya balasubramanian’s picture

StatusFileSize
new54.23 KB
new55.14 KB

Hi @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:
16px

13.5px:
13.5px

mherchel’s picture

@kostyashupenko I checked this across various browsers. Where are you seeing this?

mherchel’s picture

The answer too #17 is in a.button

mherchel’s picture

Status: Needs work » Needs review
StatusFileSize
new1.56 KB
new90.27 KB

Updated patches. Note that the interdiff doesn't include adding back in the config changes.

mherchel’s picture

disregard the prev patches. They were intended for another issue!

mherchel’s picture

The easiest route here is to set display: inline-flex; and align-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.

mherchel’s picture

My thought in #21 doesn't work in IE11

mherchel’s picture

StatusFileSize
new1.15 KB

Updated. Uses line height to center the text.

mherchel’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new2.13 KB

There's some weird inconsistencies between a.button and input.button across browsers. I'm taking that into account by using at-supports.

mherchel’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks!

ramya balasubramanian’s picture

Assigned: ramya balasubramanian » Unassigned

Status: Fixed » Closed (fixed)

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