Giter Site home page Giter Site logo

Fix link button styling about marx HOT 5 OPEN

mblode avatar mblode commented on June 6, 2024 1
Fix link button styling

from marx.

Comments (5)

troxler avatar troxler commented on June 6, 2024

For the record: I removed Marx from the list for now.
troxler/awesome-css-frameworks@910446b

from marx.

heller avatar heller commented on June 6, 2024

Hi @troxler, what makes you say the HTML is invalid?

According to MDN,

  • a <button> counts as "phrasing content" and may be placed within any element that accepts "phrasing content" [1]
  • the <a> tag supports "phrasing content" as long as there's not also non-phrasing content [2]

[1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button
[2] https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#phrasing_content

from marx.

troxler avatar troxler commented on June 6, 2024

The content model of the a element specification defines that "there must be no interactive content descendant". A button—among other elements—is interactive content.

from marx.

heller avatar heller commented on June 6, 2024

Thanks! Today I learned. I'm not the maintainer but it should be pretty easy for you to open a pull request that removes the link button example.

from marx.

devnewton avatar devnewton commented on June 6, 2024

This should do the job: #64

from marx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.