Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Badge: the position of the badge is wrong #542

Closed
hramakumar opened this issue Feb 1, 2019 · 15 comments
Closed

Badge: the position of the badge is wrong #542

hramakumar opened this issue Feb 1, 2019 · 15 comments

Comments

@hramakumar
Copy link

Bug Report

eBayUI Version: 2.0.0-2 and skin 7.0.0-5

Description

The position of the badge number is wrong when it comes with a button. it is expected to be towards right of the button but it is actually at the bottom of the button

Workaround

Screenshots

badge button icon

@hramakumar
Copy link
Author

hramakumar commented Feb 1, 2019

[redacted internal URL]

@ianmcburnie ianmcburnie removed their assignment Feb 2, 2019
@ianmcburnie
Copy link
Contributor

ianmcburnie commented Feb 5, 2019

@hramakumar Which browser and OS? I'm not seeing this issue on the Skin site. So maybe the issue is in the coreui layer or test page.

@ianmcburnie ianmcburnie changed the title badge button: the position of the badge is wrong Badge: the position of the badge is wrong Feb 5, 2019
@seangates
Copy link
Contributor

@hramakumar We should not post internal eBay URLs in this repo or the Skin repo.

@hramakumar
Copy link
Author

@ianmcburnie I see it in all devices and browsers. in test page

@hramakumar
Copy link
Author

@seangates oh ok. got it.

@ianmcburnie ianmcburnie assigned ianmcburnie and unassigned seangates Feb 6, 2019
@ianmcburnie
Copy link
Contributor

ianmcburnie commented Feb 6, 2019

@hramakumar After further investigation it appears you might be missing the following class on the test page: icon-btn--badged.

Try changing this:

<button aria-label="Menu (5000000000000 unread items)" type="button" class="icon-btn" data-ebayui="" data-widget="/@ebay/ebayui-core$2.0.0-2/dist/components/ebay-button/index" id="s0-0-16-4-426">..</button>

To this:

<button aria-label="Menu (5000000000000 unread items)" type="button" class="icon-btn icon-btn--badged" data-ebayui="" data-widget="/@ebay/ebayui-core$2.0.0-2/dist/components/ebay-button/index" id="s0-0-16-4-426">..</button>

Fixes it for me:

screen shot 2019-02-05 at 8 11 18 pm

@seangates seangates transferred this issue from eBay/ebayui-core Feb 6, 2019
@seangates
Copy link
Contributor

@ianmcburnie That should be added automatically by the button, though, right?

@seangates
Copy link
Contributor

(And I realized this after I transferred it.)

@seangates
Copy link
Contributor

We're missing some stuff that appears to have been caught in a bad merge/rebase: https://github.com/eBay/ebayui-core/pull/479/files#diff-f780e3139d3c687649c013136cdc9d0cR53

@seangates seangates self-assigned this Feb 6, 2019
@ianmcburnie
Copy link
Contributor

I'm going to transfer this back.

@ianmcburnie ianmcburnie removed their assignment Feb 6, 2019
@ianmcburnie ianmcburnie transferred this issue from eBay/skin Feb 6, 2019
@seangates
Copy link
Contributor

Yeah, apologies. 😞

@ianmcburnie
Copy link
Contributor

ianmcburnie commented Feb 6, 2019

@seangates Good spot regarding the missing code. Is there an easy way to figure out everything that's missing? This one should be our highest priority.

@seangates
Copy link
Contributor

No easy way, other than going through the files line by line. Luckily, I know this code pretty well.

It also shows that we should be very careful when we're merging/rebasing and have conflicts. Blame shows it's my fault, and I'm happy to take that blame, but there might have been another action throughout which showed the issue.

@seangates
Copy link
Contributor

Merged.

@ianmcburnie
Copy link
Contributor

Fix verified in demo page and marketplace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants