question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Floating colored label in menu doens't have color

See original GitHub issue

Bug Report

Description

A label in a menu always have a grey color even with a color class.

It seems to be fixed in the fomantic version provided in the fork though.

The .ui.menu .item>.label rule in my app and the .ui.menu .item > .label rule in jsfiddle are not the same.

In the jsFiddle :

.ui.menu .item > .label {
    margin-left: 1em;
    padding: 0.3em 0.78571429em;
}

and in 2.7.1 on my app

.ui.menu .item>.label {
    background: #999;
    color: #fff;
    margin-left: 1em;
    padding: .3em .78571429em;
}

If this is indeed fixed, when will it be available for for update ?

Testcase

fiddle (working with the fomantic provided in the fiddle

Screenshot (when possible)

  • My computed CSS My computed CSS
  • My computed HTML My computed HTML
  • The result on my app The result on my app

Version

2.7.1

EDIT : In the same time if we could have some otpions to change the label position it could be great. Like some bottom floating label or left top floating label etc. with default position (when no position specified) like now, in top right.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
etshycommented, Jan 26, 2019

Arf, I resintalled from scratch and a lot of my pages are totally messed.

I’ll have to work about this, but the problem for this issue is fixed !

Must came from when I updated to 2.7.x, I guess.

0reactions
etshycommented, Jan 26, 2019

I messed this comment of yours

Is your app using single component files instead of the whole semantic.css? I guess the menu.css is an older version (2.6.x) but label.css is 2.7.x then. The only Idea I have which would explain the behavior

I use all components bu I installed it when it was 2.6.x. I had to manually add some files when updated to 2.7 (toast files, and… maybe others., maybe I forgot something, yeah.

What can I do to be sure it’s all good ?


I didn’t know about npm info I thought it was the installed package. npm ls still returns 2.7.1.


I think I’ll try to reinstall from scratch, saving my variable override in case it delete it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change color of floating action menu - Stack Overflow
If you want to apply the same color to all components of the floating menu, just iterate over children, cast them to FloatingActionButton...
Read more >
Floating labels · Bootstrap v5.0
Create beautifully simple form labels that float over your input fields.
Read more >
Changing Menu Label Text Color During Runtime With Action ...
I've a Text linked to the Menu as "Label" component (which I activate/deactivate through Action List Hide/Show Menu Element). What I need to...
Read more >
Bootstrap 5 Form Floating Labels - W3Schools
Notes on floating labels: The <label> elements must come after the <input> element, and the placeholder attribute is required for each <input> element...
Read more >
Show, Hide, and Format Mark Labels - Tableau Help
Edit the label font: · Select a font type, size, and emphasis. · Adjust the opacity of the labels by moving the slider...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found