Use h tag for widget title instead of b tag (#12504)

* Change b tag to h3 tag

* Remove margin

* Update snapshots
pull/28217/head
R Midhun Suresh 2024-05-08 19:27:17 +05:30 committed by GitHub
parent 51a543643e
commit 706c4b7101
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 7 deletions

View File

@ -216,6 +216,11 @@ limitations under the License.
margin-right: 12px;
}
h3 {
font-size: inherit;
margin: 0;
}
> :last-child {
margin-left: 9px;
display: flex;

View File

@ -537,7 +537,7 @@ export default class AppTile extends React.Component<IProps, IState> {
return (
<span>
<WidgetAvatar app={this.props.app} size="20px" />
<b>{name}</b>
<h3>{name}</h3>
<span>
{title ? titleSpacer : ""}
{title}

View File

@ -125,9 +125,9 @@ exports[`AppTile for a pinned widget should render 1`] = `
width="20px"
/>
</span>
<b>
<h3>
Example 1
</b>
</h3>
<span />
</span>
</span>
@ -211,9 +211,9 @@ exports[`AppTile for a pinned widget should render permission request 1`] = `
width="20px"
/>
</span>
<b>
<h3>
Example 1
</b>
</h3>
<span />
</span>
</span>
@ -364,9 +364,9 @@ exports[`AppTile preserves non-persisted widget on container move 1`] = `
width="20px"
/>
</span>
<b>
<h3>
Example 1
</b>
</h3>
<span />
</span>
</span>