Skip to content

Commit

Permalink
Improved heading accessibility on welcome page.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyanziano committed Sep 10, 2019
1 parent d9ab68a commit 0aa0403
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -46,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [1855](https://github.com/microsoft/BotFramework-Emulator/pull/1855)
- [1856](https://github.com/microsoft/BotFramework-Emulator/pull/1856)
- [1858](https://github.com/microsoft/BotFramework-Emulator/pull/1858)
- [1860](https://github.com/microsoft/BotFramework-Emulator/pull/1860)

- [client] Fixed an issue with the transcripts path input inside of the resource settings dialog in PR [1836](https://github.com/microsoft/BotFramework-Emulator/pull/1836)

Expand Down
Expand Up @@ -32,14 +32,15 @@
//

import * as React from 'react';
import { SmallHeader } from '@bfemulator/ui-react';

import * as styles from './welcomePage.scss';

export function HowToBuildABot() {
return (
<div className={styles.section}>
<div className={styles.howToBuildSection}>
<h3>How to build a bot</h3>
<SmallHeader className={styles.howToTitle}>How to build a bot</SmallHeader>
<div className={styles.stepContainer}>
<div className={styles.stepIcon}>
<div className={styles.buildPlan01} />
Expand Down
Expand Up @@ -75,13 +75,8 @@
}

.how-to-build-section {
> h3 {
font-size: 13px;
font-weight: 600;
letter-spacing: 0.35px;
line-height: 16px;
margin: 0 0 24px 0;
text-transform: uppercase;
> .how-to-title {
margin: 18px 0 24px 0;
}

.step-container {
Expand Down
Expand Up @@ -7,6 +7,7 @@ export const well: string;
export const openBot: string;
export const ctaLink: string;
export const howToBuildSection: string;
export const howToTitle: string;
export const stepContainer: string;
export const stepIcon: string;
export const buildPlan01: string;
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/ui-react/src/widget/smallHeader/smallHeader.tsx
Expand Up @@ -43,7 +43,7 @@ export interface SmallIHeaderProps {
}

export const SmallHeader = (props: SmallIHeaderProps): JSX.Element => (
<h3 className={`${styles.smallHeader} ${props.className || ''}`}>
<h2 className={`${styles.smallHeader} ${props.className || ''}`}>
<TruncateText>{props.children}</TruncateText>
</h3>
</h2>
);

0 comments on commit 0aa0403

Please sign in to comment.