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

Make it really semantic #1

Closed
jensgro opened this issue Aug 22, 2013 · 11 comments
Closed

Make it really semantic #1

jensgro opened this issue Aug 22, 2013 · 11 comments

Comments

@jensgro
Copy link

jensgro commented Aug 22, 2013

Please rework the whole codebase, especially the examples, to make the project semantic, as it states itself to be.

Where is the semantic in styling a DIV as a button? Use the BUTTON-element instead. It has a special purpose and meaning. And purpose and meaning are what drives semantics. Not the naming of a class.

@davidchase
Copy link

@jensgro its funny you mention that this article talks exactly about semantics http://coding.smashingmagazine.com/2013/08/20/semantic-css-with-intelligent-selectors/
and not using divs to style buttons

@jensgro
Copy link
Author

jensgro commented Aug 26, 2013

Hi David, I didn't mention the article and of course in this article a button it was never propagated to mimic a button with a DIV. It's just not the way to do frontend-development correct.

What does in your view oppose the correct usage of HTML, i.e. the use of button if a button is required and not to style a DIV as a button and helping with Javascript to simulate what a button has out-of-the-box?

If I follow your examples we can get rid of all HTML-semantic and build a complete page just with DIV oder SPAN. That's useless.

@davidchase
Copy link

@jensgro Sorry im not sure i follow your question... Im not the author of the article, but what i was getting at is that it does not make sense to me to have a button made up from DIV and a empty I tag as found in http://semantic-ui.com/elements/button.html why not use BUTTON tag and style it... seems like that is what you suggested from the start and i was simply agreeing...

@jensgro
Copy link
Author

jensgro commented Aug 26, 2013

Hi David, sorry, I made the assumption that you are the author of this very strange "framework".
Yes, it doesn't make sense to code sites like done in the examples of this project. I just wanted to emphasize on that.

@gr0uch
Copy link

gr0uch commented Sep 13, 2013

+1 @jensgro. I am more than a little put off by the total avoidance of HTML5 tags, i.e. why use <div class="ui menu"> when <nav> serves the same purpose and is much more concise? The regression from <button> to <div class="ui button">, <header> to <div class="ui header">, <main> to <div class="main container"> all seems very backwards to me.

Can anyone explain the rationale behind ditching actual semantic tags? Would it ever be preferable to use <span class="bold"> over the <b> tag? The <b> tag has an inherent special meaning, whereas the class names do not. Similarly, <header> and <footer> denote a particular kind of content, which isn't exactly communicated by just adding a few class names to divs. As a side note, the ui class name seems totally redundant, but more dangerously, not consistently applied.

@jlukic
Copy link
Member

jlukic commented Sep 14, 2013

You can use any tag you please. Button tag works as well as div or article. Semantic refers to the linguistic definition of the word, not the current developer re-appropriation to mean adherence to w3c specification.

For more on this refer to prescriptivist/descriptivist dilemma in linguistics as described in a humorous form by DFW
http://instruct.westvalley.edu/lafave/DFW_present_tense.html

@gr0uch
Copy link

gr0uch commented Sep 14, 2013

Okay, but if I use the button tag, would it be <button class="ui button">? That would be redundant, no?

@jlukic
Copy link
Member

jlukic commented Sep 14, 2013

Yes, it is redundant, but not all UI types are represented in html tags. We only get to play with a handful of new ones every few years, and hell some of those get deprecated. And who decides? A committee of industry folks who are on the W3C advisory board and a smidgen of browsers devs in the implementation. There's plenty of other sources of grief on the web over the whole process so i'll save the recap.

Semantic is about developers coming together to build standards around naming, so that we can share code between projects without having to learn each others conventions.

@jlukic jlukic closed this as completed Sep 14, 2013
@zenorocha
Copy link

+1

@eliseumds
Copy link

+1

I am wondering if the old GitHub's upvote button was a real BUTTON 😆

jlukic pushed a commit that referenced this issue Jan 15, 2015
@jjdd12
Copy link

jjdd12 commented Apr 17, 2015

+1

jlukic pushed a commit that referenced this issue Feb 13, 2016
tarvos21 pushed a commit to tarvos21/Semantic-UI that referenced this issue Feb 3, 2017
Troshin2520 pushed a commit to Troshin2520/Semantic-UI that referenced this issue Nov 13, 2017
…ition

Fix bug within Samsung Browser can.transition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants