We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 831d223 commit e965999Copy full SHA for e965999
src/plugins/global-settings/typography/utils.js
@@ -1,3 +1,10 @@
1
+/**
2
+ * Returns the reversely computed typescale based on the typography settings and device type
3
+ *
4
+ * @param {Object} typographySettings - The typography settings object
5
+ * @param {string} deviceType - The device type
6
+ * @return {string} The computed typescale. Values can be none, custom, or the numeric scale.
7
+ */
8
export const getTypographyTypeScale = ( typographySettings, deviceType ) => {
9
const fontSizeKey = getDevicePropertyKey( 'fontSize', deviceType )
10
const fontSizeUnitKey = getDevicePropertyKey( 'fontSizeUnit', deviceType )
0 commit comments