Skip to content

Allow user to add custom header classes - #66

Merged
shepherdwind merged 1 commit into
react-component:masterfrom
Brookelyn:master
Apr 25, 2017
Merged

shepherdwind merged 1 commit into
react-component:masterfrom
Brookelyn:master

Conversation

@Brookelyn

Copy link
Copy Markdown
Contributor

I need to add custom styles to the header where I'm using this component, and realised that others may be likely to want to do the same. Therefore, I've added in a new prop, headerClass, to allow users to add customer header styles to this area of the component.

Thanks for creating an awesome component, and please let me know if I've missed anything out! :)

@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 01d8138 on Brookelyn:master into ** on react-component:master**.

@shepherdwind
shepherdwind merged commit 4d16602 into react-component:master Apr 25, 2017
@shepherdwind

Copy link
Copy Markdown
Contributor

1.7.2 published. Thanks for you pr.

@paranoidjk

paranoidjk commented Apr 26, 2017 •

Copy link
Copy Markdown
Member

@shepherdwind classname is added a suffix space,cause antd-mobile snapshot test broken...

paranoidjk referenced this pull request in ant-design/ant-design-mobile Apr 26, 2017
paranoidjk added a commit to ant-design/ant-design-mobile that referenced this pull request Apr 26, 2017
Comment thread src/Panel.jsx
destroyInactivePanel,
} = this.props;
const headerCls = `${prefixCls}-header`;
const headerCls = `${prefixCls}-header ${headerClass}`;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should use classNames here.

benjycui added a commit that referenced this pull request Apr 26, 2017
shepherdwind added a commit that referenced this pull request Apr 26, 2017
lixiaoyang1992 pushed a commit to lixiaoyang1992/ant-design-mobile that referenced this pull request Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants