@atlaskit/renderer
Version:
Renderer component
16 lines (15 loc) • 757 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getBaseFontSize = void 0;
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
var getBaseFontSize = exports.getBaseFontSize = function getBaseFontSize(appearance, contentMode) {
if ((0, _expValEquals.expValEquals)('confluence_compact_text_format', 'isEnabled', true) || (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test')) {
if (contentMode === 'compact') {
return _editorSharedStyles.akEditorFullPageDenseFontSize;
}
}
return appearance && appearance !== 'comment' ? _editorSharedStyles.akEditorFullPageDefaultFontSize : 14;
};