Skip to content

Commit bdf890b

Browse files
montezumekodiakhq[bot]
authored andcommitted
fix: use correct font family (#1061)
1 parent fde23d3 commit bdf890b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/internals/create-select-styles.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const menuStyles = (props, theme) => base => {
8181
backgroundColor: overwrittenVars[designTokens.backgroundColorForInput],
8282
boxShadow: overwrittenVars.shadow7,
8383
fontSize: overwrittenVars[designTokens.fontSizeForInput],
84-
fontFamily: overwrittenVars.fontFamilyDefault,
84+
fontFamily: 'inherit',
8585
margin: `${overwrittenVars.spacingXs} 0 0 0`,
8686
borderColor: (() => {
8787
if (props.hasError)
@@ -270,7 +270,7 @@ const containerStyles = (props, theme) => (base, state) => {
270270

271271
return {
272272
...base,
273-
fontFamily: overwrittenVars.fontFamilyDefault,
273+
fontFamily: 'inherit',
274274
minHeight: overwrittenVars.sizeHeightInput,
275275
borderRadius: overwrittenVars[designTokens.borderRadiusForInput],
276276
cursor: state.isDisabled ? 'not-allowed' : base.cursor,

src/components/tooltip/tooltip.styles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const Body = styled.div`
4848
// with the styles we get from react-popper :D
4949
// eslint-disable-next-line import/prefer-default-export
5050
export const getBodyStyles = ({ constraint, placement, customStyles }) => ({
51-
fontFamily: vars.fontFamilyDefault,
51+
fontFamily: 'inherit',
5252
margin: `${getOffsetMargin({ placement })} !important`,
5353
maxWidth: getMaxWidth({ constraint }),
5454
// so hovering over the tooltip when the tooltip overlaps the component

0 commit comments

Comments
 (0)