CodeDraken / CodeDraken/spectre-react

Add Typography Props Mixin

Ouverte
#32 0 commentaires 0 réactions 1 personne assignée Réclamée par @CodeDraken Voir sur GitHub
enhancement
Langage dominant
JavaScript
Étoiles
7
Forks
6
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

When a component is primarily text ( i.e title, subtitle components ) it should allow typography classes to be passed as a boolean.

Example:

This would add the `h5` class.
```js

```

Since this would apply to several components a mixin can be created to avoid repetition.

Things to include:

* Headers i.e `h1`
* Colors i.e `text-gray`
* Positioning i.e `text-center`

https://picturepan2.github.io/spectre/elements.html#typography

https://picturepan2.github.io/spectre/utilities.html

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.