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.

Class name order shouldn’t matter

See original GitHub issue

Hi,

The result produced by class="ui segment attached bottom" and class="ui bottom attached segment" differs.

Maybe I’m lacking some basic HTML/CSS knowledge, but I think order should not matter, although I understand it’s more “english-readable” to put the classes in the “grammatically correct” order.

Whereas class="ui bottom attached segment" gives me the rounded bottom, class="ui segment attached bottom" does not (tested on Chrome 58).

Thank you all!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
awgvcommented, Jun 24, 2017

Hi @RenaudParis, I think that’s because SUI uses the attribute selector—it’s not specific to the segment component—.ui.segment[class*="bottom attached"].

0reactions
prsyahmicommented, Jan 12, 2022

For semantic ui to play with parcel

create .htmlnanorc.js with below content:

module.exports = {
	"deduplicateAttributeValues": false,
	"sortAttributesWithLists": false
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

The Order of CSS Classes in HTML Doesn't Matter
CSS always takes place from last to top and right to left so the ordering of the CSS matters not the classes in...
Read more >
Class Names in same order produce different result(Chrome ...
Is it possible that in CSS world, exactly the same order class name produce a different result? Order of classes is not important....
Read more >
Class order in html shouldn't matter, but why does it change in ...
I was following with the lesson and I put the grid classes in different order thinking that it wouldn't make a difference... but...
Read more >
Best Practices for ID and Class Names - Jens Oliver Meiert
Best Practices for ID and Class Names · 1. Keep Use of IDs and Classes to a Minimum · 2. Use Functional ID...
Read more >
Naming Classes — Why It Matters, and How to Do It Well
This is the general rule of thumb. If a word is ambiguous, doesn't add any meaning to a name, and is not the...
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