Giter Site home page Giter Site logo

Use h5 etc for CardTitle about sveltestrap HOT 5 CLOSED

bestguy avatar bestguy commented on August 11, 2024
Use h5 etc for CardTitle

from sveltestrap.

Comments (5)

daytonlowell avatar daytonlowell commented on August 11, 2024

What about leaving it as a div but applying the BS4 h5 class to the div by default? Probably have to write some logic so that we don't apply that default class if they pass in h1 -> h6 classes.

Source: https://getbootstrap.com/docs/4.4/content/typography/#headings

from sveltestrap.

bestguy avatar bestguy commented on August 11, 2024

Thanks, we could, however the .card-title class is what defines the look, so .h5 for styling isn't really needed. The h* tag is mostly for semantics here.

from sveltestrap.

daytonlowell avatar daytonlowell commented on August 11, 2024

That's fair, though if we're going this route we'll probably need to expose some way for them to use any of the h* tags? Probably don't want to force them into h5?

from sveltestrap.

bestguy avatar bestguy commented on August 11, 2024

Hmm, true. I was going by the examples here which all use h5: https://getbootstrap.com/docs/4.4/components/card/#titles-text-and-links

but they also mention h* .
Reactstrap uses div but React allows for the tag to be dynamic: https://github.com/reactstrap/reactstrap/blob/master/src/CardTitle.js#L13

Maybe div is okay? Haha not sure tbh.

from sveltestrap.

bestguy avatar bestguy commented on August 11, 2024

Fixed in v5

from sveltestrap.

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.