diff --git a/packages/core/ui/dialogs/dialogs-common.ts b/packages/core/ui/dialogs/dialogs-common.ts index 36fc918d39..fad0152b77 100644 --- a/packages/core/ui/dialogs/dialogs-common.ts +++ b/packages/core/ui/dialogs/dialogs-common.ts @@ -3,8 +3,11 @@ import { View } from '../core/view'; import { Color } from '../../color'; import { Page } from '../page'; import { Frame } from '../frame'; +import { CSSUtils } from '../../css/system-classes'; import { isObject, isString } from '../../utils/types'; +const CSS_CLASS = `${CSSUtils.CLASS_PREFIX}dialog-item`; + export namespace DialogStrings { export const STRING = 'string'; export const PROMPT = 'Prompt'; @@ -271,6 +274,7 @@ export function getButtonColors(): { color: Color; backgroundColor: Color } { if (!button) { const Button = require('../button').Button; button = new Button(); + button.className = CSS_CLASS; if (__APPLE__) { button._setupUI({}); } @@ -290,6 +294,7 @@ export function getLabelColor(): Color { if (!label) { const Label = require('../label').Label; label = new Label(); + label.className = CSS_CLASS; if (__APPLE__) { label._setupUI({}); } @@ -307,6 +312,7 @@ export function getTextFieldColor(): Color { if (!textField) { const TextField = require('../text-field').TextField; textField = new TextField(); + textField.className = CSS_CLASS; if (__APPLE__) { textField._setupUI({}); }