Skip to content

Commit

Permalink
ResizeTooltip: Use default.fontFamily on tooltip (#48805)
Browse files Browse the repository at this point in the history
* Use default.fontFamily

* Update CHANGELOG.md
  • Loading branch information
richtabor authored Mar 8, 2023
1 parent 32a3cc8 commit 1af9cab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Bug Fix

- `ResponsiveWrapper`: use `aspect-ratio` CSS prop, add support for `SVG` elements ([#48573](https://github.com/WordPress/gutenberg/pull/48573).
- `ResizeTooltip`: Use `default.fontFamily` on tooltip ([#48805](https://github.com/WordPress/gutenberg/pull/48805).

### Internal

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import styled from '@emotion/styled';
* Internal dependencies
*/
import { Text } from '../../../text';
import { COLORS } from '../../../utils';
import { font, COLORS } from '../../../utils';

export const Root = styled.div`
bottom: 0;
Expand All @@ -33,6 +33,7 @@ export const Tooltip = styled.div`
background: ${ COLORS.gray[ 900 ] };
border-radius: 2px;
box-sizing: border-box;
font-family: ${ font( 'default.fontFamily' ) };
font-size: 12px;
color: ${ COLORS.ui.textDark };
padding: 4px 8px;
Expand Down

1 comment on commit 1af9cab

@github-actions
Copy link

Choose a reason for hiding this comment

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

Flaky tests detected in 1af9cab.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4369325371
📝 Reported issues:

Please sign in to comment.