2021-10-19 13:50:09 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`FontScalingPanel renders the font scaling UI 1`] = `
|
2022-03-22 10:32:35 +00:00
|
|
|
<FontScalingPanel>
|
|
|
|
<div
|
|
|
|
className="mx_SettingsTab_section mx_FontScalingPanel"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
className="mx_SettingsTab_subheading"
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
2022-03-22 10:32:35 +00:00
|
|
|
Font size
|
|
|
|
</span>
|
|
|
|
<EventTilePreview
|
|
|
|
avatarUrl={null}
|
|
|
|
className="mx_FontScalingPanel_fontSlider_preview"
|
|
|
|
displayName={null}
|
|
|
|
layout="group"
|
|
|
|
message="Hey you. You're the best!"
|
|
|
|
userId={null}
|
|
|
|
>
|
|
|
|
<div
|
2022-06-20 16:55:47 +00:00
|
|
|
className="mx_FontScalingPanel_fontSlider_preview mx_EventTilePreview_loader"
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
2022-03-22 10:32:35 +00:00
|
|
|
<Spinner
|
|
|
|
h={32}
|
|
|
|
w={32}
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
2022-03-22 10:32:35 +00:00
|
|
|
<div
|
|
|
|
className="mx_Spinner"
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
|
|
|
<div
|
2022-03-22 10:32:35 +00:00
|
|
|
aria-label="Loading..."
|
|
|
|
className="mx_Spinner_icon"
|
|
|
|
style={
|
|
|
|
Object {
|
|
|
|
"height": 32,
|
|
|
|
"width": 32,
|
2021-10-19 13:50:09 +00:00
|
|
|
}
|
2022-03-22 10:32:35 +00:00
|
|
|
}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</Spinner>
|
|
|
|
</div>
|
|
|
|
</EventTilePreview>
|
|
|
|
<div
|
|
|
|
className="mx_FontScalingPanel_fontSlider"
|
|
|
|
>
|
2021-10-19 13:50:09 +00:00
|
|
|
<div
|
2022-03-22 10:32:35 +00:00
|
|
|
className="mx_FontScalingPanel_fontSlider_smallText"
|
|
|
|
>
|
|
|
|
Aa
|
|
|
|
</div>
|
|
|
|
<Slider
|
|
|
|
disabled={false}
|
|
|
|
displayFunc={[Function]}
|
|
|
|
onSelectionChange={[Function]}
|
|
|
|
value={15}
|
|
|
|
values={
|
|
|
|
Array [
|
|
|
|
13,
|
|
|
|
14,
|
|
|
|
15,
|
|
|
|
16,
|
|
|
|
18,
|
|
|
|
]
|
|
|
|
}
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
|
|
|
<div
|
2022-03-22 10:32:35 +00:00
|
|
|
className="mx_Slider"
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
2022-03-22 10:32:35 +00:00
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
className="mx_Slider_bar"
|
|
|
|
>
|
|
|
|
<hr
|
|
|
|
onClick={[Function]}
|
|
|
|
/>
|
2021-10-19 13:50:09 +00:00
|
|
|
<div
|
2022-03-22 10:32:35 +00:00
|
|
|
className="mx_Slider_selection"
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
|
|
|
<div
|
2022-03-22 10:32:35 +00:00
|
|
|
className="mx_Slider_selectionDot"
|
|
|
|
style={
|
|
|
|
Object {
|
|
|
|
"left": "calc(-1.195em + 50%)",
|
|
|
|
}
|
|
|
|
}
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
|
|
|
<div
|
2022-03-22 10:32:35 +00:00
|
|
|
className="mx_Slider_selectionText"
|
2021-10-20 12:41:27 +00:00
|
|
|
>
|
2022-03-22 10:32:35 +00:00
|
|
|
15
|
2021-10-20 12:41:27 +00:00
|
|
|
</div>
|
2021-10-19 13:50:09 +00:00
|
|
|
</div>
|
2022-03-22 10:32:35 +00:00
|
|
|
<hr
|
|
|
|
style={
|
|
|
|
Object {
|
|
|
|
"width": "50%",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/>
|
2021-10-19 13:50:09 +00:00
|
|
|
</div>
|
2022-03-22 10:32:35 +00:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
className="mx_Slider_dotContainer"
|
|
|
|
>
|
|
|
|
<Dot
|
|
|
|
active={true}
|
|
|
|
disabled={false}
|
|
|
|
key="13"
|
|
|
|
label=""
|
|
|
|
onClick={[Function]}
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
2022-03-22 10:32:35 +00:00
|
|
|
<span
|
|
|
|
className="mx_Slider_dotValue"
|
2021-10-19 13:50:09 +00:00
|
|
|
onClick={[Function]}
|
|
|
|
>
|
2022-03-22 10:32:35 +00:00
|
|
|
<div
|
|
|
|
className="mx_Slider_dot mx_Slider_dotActive"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
className="mx_Slider_labelContainer"
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
|
|
|
<div
|
2022-03-22 10:32:35 +00:00
|
|
|
className="mx_Slider_label"
|
2021-10-19 13:50:09 +00:00
|
|
|
/>
|
2022-03-22 10:32:35 +00:00
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</Dot>
|
|
|
|
<Dot
|
|
|
|
active={true}
|
|
|
|
disabled={false}
|
|
|
|
key="14"
|
|
|
|
label=""
|
|
|
|
onClick={[Function]}
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
className="mx_Slider_dotValue"
|
2021-10-19 13:50:09 +00:00
|
|
|
onClick={[Function]}
|
|
|
|
>
|
2022-03-22 10:32:35 +00:00
|
|
|
<div
|
|
|
|
className="mx_Slider_dot mx_Slider_dotActive"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
className="mx_Slider_labelContainer"
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
|
|
|
<div
|
2022-03-22 10:32:35 +00:00
|
|
|
className="mx_Slider_label"
|
2021-10-19 13:50:09 +00:00
|
|
|
/>
|
2022-03-22 10:32:35 +00:00
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</Dot>
|
|
|
|
<Dot
|
|
|
|
active={true}
|
|
|
|
disabled={false}
|
|
|
|
key="15"
|
|
|
|
label=""
|
|
|
|
onClick={[Function]}
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
className="mx_Slider_dotValue"
|
2021-10-19 13:50:09 +00:00
|
|
|
onClick={[Function]}
|
|
|
|
>
|
2022-03-22 10:32:35 +00:00
|
|
|
<div
|
|
|
|
className="mx_Slider_dot mx_Slider_dotActive"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
className="mx_Slider_labelContainer"
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
|
|
|
<div
|
2022-03-22 10:32:35 +00:00
|
|
|
className="mx_Slider_label"
|
2021-10-19 13:50:09 +00:00
|
|
|
/>
|
2022-03-22 10:32:35 +00:00
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</Dot>
|
|
|
|
<Dot
|
|
|
|
active={false}
|
|
|
|
disabled={false}
|
|
|
|
key="16"
|
|
|
|
label=""
|
|
|
|
onClick={[Function]}
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
className="mx_Slider_dotValue"
|
2021-10-19 13:50:09 +00:00
|
|
|
onClick={[Function]}
|
|
|
|
>
|
2022-03-22 10:32:35 +00:00
|
|
|
<div
|
|
|
|
className="mx_Slider_dot"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
className="mx_Slider_labelContainer"
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
|
|
|
<div
|
2022-03-22 10:32:35 +00:00
|
|
|
className="mx_Slider_label"
|
2021-10-19 13:50:09 +00:00
|
|
|
/>
|
2022-03-22 10:32:35 +00:00
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</Dot>
|
|
|
|
<Dot
|
|
|
|
active={false}
|
|
|
|
disabled={false}
|
|
|
|
key="18"
|
|
|
|
label=""
|
|
|
|
onClick={[Function]}
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
className="mx_Slider_dotValue"
|
2021-10-19 13:50:09 +00:00
|
|
|
onClick={[Function]}
|
|
|
|
>
|
2022-03-22 10:32:35 +00:00
|
|
|
<div
|
|
|
|
className="mx_Slider_dot"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
className="mx_Slider_labelContainer"
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
|
|
|
<div
|
2022-03-22 10:32:35 +00:00
|
|
|
className="mx_Slider_label"
|
2021-10-19 13:50:09 +00:00
|
|
|
/>
|
2022-03-22 10:32:35 +00:00
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</Dot>
|
2021-10-19 13:50:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-22 10:32:35 +00:00
|
|
|
</Slider>
|
|
|
|
<div
|
|
|
|
className="mx_FontScalingPanel_fontSlider_largeText"
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
2022-03-22 10:32:35 +00:00
|
|
|
Aa
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<SettingsFlag
|
|
|
|
level="account"
|
|
|
|
name="useCustomFontSize"
|
|
|
|
onChange={[Function]}
|
|
|
|
useCheckbox={true}
|
|
|
|
>
|
|
|
|
<StyledCheckbox
|
|
|
|
checked={false}
|
|
|
|
className=""
|
|
|
|
disabled={false}
|
2021-10-19 13:50:09 +00:00
|
|
|
onChange={[Function]}
|
|
|
|
>
|
2022-03-22 10:32:35 +00:00
|
|
|
<span
|
|
|
|
className="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 10:32:35 +00:00
|
|
|
checked={false}
|
|
|
|
disabled={false}
|
|
|
|
id="checkbox_abdefghi"
|
2021-10-19 13:50:09 +00:00
|
|
|
onChange={[Function]}
|
2022-03-22 10:32:35 +00:00
|
|
|
type="checkbox"
|
2021-10-19 13:50:09 +00:00
|
|
|
/>
|
|
|
|
<label
|
2022-03-22 10:32:35 +00:00
|
|
|
htmlFor="checkbox_abdefghi"
|
2021-10-19 13:50:09 +00:00
|
|
|
>
|
2022-03-22 10:32:35 +00:00
|
|
|
<div
|
|
|
|
className="mx_Checkbox_background"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_Checkbox_checkmark"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
Use custom size
|
|
|
|
</div>
|
2021-10-19 13:50:09 +00:00
|
|
|
</label>
|
2022-03-22 10:32:35 +00:00
|
|
|
</span>
|
|
|
|
</StyledCheckbox>
|
|
|
|
</SettingsFlag>
|
|
|
|
<Field
|
|
|
|
autoComplete="off"
|
|
|
|
className="mx_FontScalingPanel_customFontSizeField"
|
|
|
|
disabled={true}
|
|
|
|
element="input"
|
|
|
|
id="font_size_field"
|
|
|
|
label="Font size"
|
|
|
|
onChange={[Function]}
|
|
|
|
onValidate={[Function]}
|
|
|
|
placeholder="15"
|
|
|
|
type="number"
|
|
|
|
validateOnBlur={true}
|
|
|
|
validateOnChange={true}
|
|
|
|
validateOnFocus={true}
|
|
|
|
value="15"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_Field mx_Field_input mx_FontScalingPanel_customFontSizeField"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
autoComplete="off"
|
|
|
|
disabled={true}
|
|
|
|
id="font_size_field"
|
|
|
|
label="Font size"
|
|
|
|
onBlur={[Function]}
|
|
|
|
onChange={[Function]}
|
|
|
|
onFocus={[Function]}
|
|
|
|
placeholder="15"
|
|
|
|
type="number"
|
|
|
|
value="15"
|
|
|
|
/>
|
|
|
|
<label
|
|
|
|
htmlFor="font_size_field"
|
|
|
|
>
|
|
|
|
Font size
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</Field>
|
|
|
|
</div>
|
|
|
|
</FontScalingPanel>
|
2021-10-19 13:50:09 +00:00
|
|
|
`;
|