code-guide icon indicating copy to clipboard operation
code-guide copied to clipboard

Was just wondering what your policy was on #IDs

Open blackspike opened this issue 3 years ago • 3 comments

I notice in your source that they are kebab cased, but not mentionned in the guide. Cheers!

<h2 id="golden-rule">Golden rule</h2>

blackspike avatar Oct 05 '22 08:10 blackspike

In general I lowercase-dash everything—classes, names, ids, etc. I don't label it anyone thing or another and mostly optimize for my own experience with it. Like double-clicking parts of a dashes word vs camelCase—such a nice and small utility to me. CamelCase just looks like gibberish to me even though we use some of in the Bootstrap docs. Makes me want to change it now haha.

Unsure if we should put this in the guide, but maybe.

mdo avatar Oct 15 '22 03:10 mdo

I was wondering this too.

Maybe it should be in the guide...

vanillajonathan avatar Feb 02 '23 13:02 vanillajonathan

Hello!  Your E-mail has been recieved and I will respond you as soon as possible.Best wishes! 

beMySun avatar Feb 02 '23 13:02 beMySun