Comments (5)
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.
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.
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.
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.
Fixed in v5
from sveltestrap.
Related Issues (20)
- Svelte 4 support HOT 24
- Build with Node 18+ HOT 3
- Support `keyboard` option of Offcanvas
- ESM/CJS conflict when importing Sveltestrap components HOT 4
- Migrate to floating UI
- Add `"type": "module"` to `package.json` HOT 2
- Button dropdown work only on second press HOT 1
- [docs] "Misleading" Alert title in the first example
- `hidden` flag/attribute on Nav/NavItem
- Documentation on color handling is incorrect HOT 1
- Mixing FormGroup and InputGroup
- Modal on:opening and on:open events are not firing HOT 1
- Looking for new maintainer HOT 4
- Add `plainText` and `size` props for Input
- Allow markup in Input labels
- Important: Repo Migration! HOT 1
- Input date with max attribute keyboard issue HOT 2
- Missing exports condition
- Carousel theme not working
- Adding Classes to elements result in "unused css selector" with in document CSS. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sveltestrap.