MM-64690 - fix channel name input label (#32157)

* MM-64690 - fix channel name input label

* add correct font-weight

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Pablo Vélez
2025-06-27 23:03:59 +02:00
коммит произвёл GitHub
родитель fec77c26a1
Коммит cd1e312190
7 изменённых файлов: 25 добавлений и 12 удалений

Просмотреть файл

@@ -344,12 +344,11 @@ function ChannelSettingsInfoTab({
/>
{/* Channel Name Section*/}
<label
htmlFor='input_channel-settings-name'
className='Input_legend'
<div
className='ChannelSettingsModal__infoTabTitle'
>
{formatMessage({id: 'channel_settings.label.name', defaultMessage: 'Channel Name'})}
</label>
{formatMessage({id: 'channel_settings.channel_info_tab.name', defaultMessage: 'Channel Info'})}
</div>
<ChannelNameFormField
value={displayName}
name='channel-settings-name'

Просмотреть файл

@@ -2,7 +2,7 @@
// See LICENSE.txt for license information.
.ChannelSettingsModal {
label.Input_legend {
&__infoTabTitle {
margin-bottom: 4px;
color: var(--center-channel-color);
font-family: Metropolis, sans-serif;

Просмотреть файл

@@ -72,7 +72,10 @@ Object {
>
<label
class="Input_legend"
/>
for="input_name"
>
</label>
<div
class="Input_wrapper"
>
@@ -97,7 +100,9 @@ Object {
>
<label
class="Input_legend Input_legend___focus"
for="input_email"
>
Business Email
</label>
<div
@@ -141,7 +146,10 @@ Object {
>
<label
class="Input_legend"
/>
for="input_company_name"
>
</label>
<div
class="Input_wrapper"
>

Просмотреть файл

@@ -11,7 +11,10 @@ exports[`components/widgets/inputs/Input should match snapshot 1`] = `
>
<label
class="Input_legend"
/>
for="input_"
>
</label>
<div
class="Input_wrapper"
>

Просмотреть файл

@@ -192,6 +192,7 @@
background-color: var(--center-channel-bg);
color: rgba(var(--center-channel-color-rgb), 0.75);
font-size: 10px;
font-weight: normal;
line-height: 14px;
opacity: 0;
transform: translateY(8px);

Просмотреть файл

@@ -266,8 +266,10 @@ const Input = React.forwardRef((
data-testid='input-wrapper'
>
{useLegend && (
<label className={classNames('Input_legend', {Input_legend___focus: showLegend})}>
{showLegend ? formatAsString(formatMessage, label || placeholder) : null}
<label
htmlFor={inputId}
className={classNames('Input_legend', {Input_legend___focus: showLegend})}
> {showLegend ? formatAsString(formatMessage, label || placeholder) : null}
</label>
)}
<div className={classNames('Input_wrapper', wrapperClassName)}>

Просмотреть файл

@@ -3654,12 +3654,12 @@
"channel_settings_modal.purpose.placeholder": "Enter a purpose for this channel (optional)",
"channel_settings.archive.button": "Archive this channel",
"channel_settings.archive.warning": "Archiving a channel removes it from the user interface, but doesn't permanently delete the channel. New messages can't be posted to archived channels.",
"channel_settings.channel_info_tab.name": "Channel Info",
"channel_settings.error_banner_color_required": "Banner color is required",
"channel_settings.error_banner_text_required": "Banner text is required",
"channel_settings.error_display_name_required": "Channel name is required",
"channel_settings.error_purpose_length": "The text entered exceeds the character limit. The channel purpose is limited to {maxLength} characters.",
"channel_settings.header.label": "Channel Header",
"channel_settings.label.name": "Channel Name",
"channel_settings.modal.archiveTitle": "Archive Channel?",
"channel_settings.modal.confirmArchive": "Confirm",
"channel_settings.modal.title": "Channel Settings",