-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: title and subtitle Components #33
Conversation
export ? |
fontSize && (titleClassesStr += `is-${fontSize},`); | ||
|
||
const classes = getStyles(titleClassesStr.split(',')); | ||
return <h1 className={classes}>{children}</h1>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subtitle in h1
🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya, its same bulma.io
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
import { SubTitleProps, defaultProps } from './types'; | ||
import { getStyles } from '../../styles/getStyles'; | ||
|
||
const SubTitle: React.SFC<SubTitleProps> = ({ children, fontSize }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
isSpaced && (titleClassesStr += `is-spaced,`); | ||
|
||
const classes = getStyles(titleClassesStr.split(',')); | ||
return <h1 className={classes}>{children}</h1>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title also in h1
??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya same in bulma.io classes are different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
np
import { TitleProps, defaultProps } from './types'; | ||
import { getStyles } from '../../styles/getStyles'; | ||
|
||
const Title: React.SFC<TitleProps> = ({ children, fontSize, isSpaced }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FC
here too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few minor changes. otherwise it LGTM 👍
fixed those Changes |
g2m |
🎉 This PR is included in version 1.0.17 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.