Skip to content
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

Merged
merged 3 commits into from
Oct 10, 2020
Merged

fix: title and subtitle Components #33

merged 3 commits into from
Oct 10, 2020

Conversation

fayez-baig
Copy link
Owner

No description provided.

@faran4engg
Copy link
Collaborator

No description provided.

export ?

fontSize && (titleClassesStr += `is-${fontSize},`);

const classes = getStyles(titleClassesStr.split(','));
return <h1 className={classes}>{children}</h1>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

subtitle in h1 🤔

Copy link
Owner Author

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

Copy link
Collaborator

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 }) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FC

Copy link
Owner Author

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>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

title also in h1 ??

Copy link
Owner Author

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

Copy link
Collaborator

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 }) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FC here too

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator

@faran4engg faran4engg left a 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 👍

@fayez-baig
Copy link
Owner Author

fixed those Changes

@faran4engg
Copy link
Collaborator

fixed those Changes

g2m

@fayez-baig fayez-baig merged commit 5bf1c45 into develop Oct 10, 2020
@fayez-baig
Copy link
Owner Author

🎉 This PR is included in version 1.0.17 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants