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*/} {/* Channel Name Section*/}
<label <div
htmlFor='input_channel-settings-name' className='ChannelSettingsModal__infoTabTitle'
className='Input_legend'
> >
{formatMessage({id: 'channel_settings.label.name', defaultMessage: 'Channel Name'})} {formatMessage({id: 'channel_settings.channel_info_tab.name', defaultMessage: 'Channel Info'})}
</label> </div>
<ChannelNameFormField <ChannelNameFormField
value={displayName} value={displayName}
name='channel-settings-name' name='channel-settings-name'

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

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

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

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

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

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

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

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

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

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

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

@@ -3654,12 +3654,12 @@
"channel_settings_modal.purpose.placeholder": "Enter a purpose for this channel (optional)", "channel_settings_modal.purpose.placeholder": "Enter a purpose for this channel (optional)",
"channel_settings.archive.button": "Archive this channel", "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.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_color_required": "Banner color is required",
"channel_settings.error_banner_text_required": "Banner text 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_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.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.header.label": "Channel Header",
"channel_settings.label.name": "Channel Name",
"channel_settings.modal.archiveTitle": "Archive Channel?", "channel_settings.modal.archiveTitle": "Archive Channel?",
"channel_settings.modal.confirmArchive": "Confirm", "channel_settings.modal.confirmArchive": "Confirm",
"channel_settings.modal.title": "Channel Settings", "channel_settings.modal.title": "Channel Settings",