Skip to content

Commit bfdf7f4

Browse files
authored
Merge pull request #173 from rvsia/pf3-title-h1
fix(pf3title): make it <h1 />
2 parents 5758020 + df04646 commit bfdf7f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/pf3-component-mapper/src/form-fields/layout-components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ButtonGroupWrapper.defaultProps = {
3434
className: '',
3535
};
3636

37-
const TitleWrapper = ({ children }) => <h3>{ children }</h3>;
37+
const TitleWrapper = ({ children }) => <h1>{ children }</h1>;
3838

3939
TitleWrapper.propTypes = {
4040
children: PropTypes.oneOfType([ PropTypes.node, PropTypes.arrayOf(PropTypes.node) ]).isRequired,

packages/pf3-component-mapper/src/tests/layout-components.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('Layout mapper', () => {
1313
});
1414

1515
it('should return PF3 Title', () => {
16-
expect(mount(layoutMapper[layoutComponents.TITLE]({})).find('h3')).toHaveLength(1);
16+
expect(mount(layoutMapper[layoutComponents.TITLE]({})).find('h1')).toHaveLength(1);
1717
});
1818

1919
it('should return PF3 Description', () => {

0 commit comments

Comments
 (0)