diff --git a/webapp/channels/src/components/__snapshots__/searchable_channel_list.test.tsx.snap b/webapp/channels/src/components/__snapshots__/searchable_channel_list.test.tsx.snap index ac38d23951..41b1a9b018 100644 --- a/webapp/channels/src/components/__snapshots__/searchable_channel_list.test.tsx.snap +++ b/webapp/channels/src/components/__snapshots__/searchable_channel_list.test.tsx.snap @@ -11,8 +11,8 @@ exports[`components/SearchableChannelList should match init snapshot 1`] = ` aria-hidden="true" id="searchIcon" > - - + @@ -191,7 +193,9 @@ exports[`components/AddGroupsToChannelModal should match when renderOption is ca
- +
@@ -238,7 +242,9 @@ exports[`components/AddGroupsToChannelModal should match when renderOption is ca
- +
diff --git a/webapp/channels/src/components/add_groups_to_channel_modal/add_groups_to_channel_modal.tsx b/webapp/channels/src/components/add_groups_to_channel_modal/add_groups_to_channel_modal.tsx index 03d55748aa..2b9a63ee21 100644 --- a/webapp/channels/src/components/add_groups_to_channel_modal/add_groups_to_channel_modal.tsx +++ b/webapp/channels/src/components/add_groups_to_channel_modal/add_groups_to_channel_modal.tsx @@ -13,7 +13,6 @@ import type {ActionFunc} from 'mattermost-redux/types/actions'; import MultiSelect from 'components/multiselect/multiselect'; import type {Value} from 'components/multiselect/multiselect'; -import AddIcon from 'components/widgets/icons/fa_add_icon'; import groupsAvatar from 'images/groups-avatar.png'; import Constants from 'utils/constants'; @@ -218,7 +217,7 @@ export default class AddGroupsToChannelModal extends React.PureComponent
- +
@@ -271,7 +270,7 @@ export default class AddGroupsToChannelModal extends React.PureComponent - + - + @@ -195,7 +197,9 @@ exports[`components/AddGroupsToTeamModal should match when renderOption is calle
- +
diff --git a/webapp/channels/src/components/add_groups_to_team_modal/add_groups_to_team_modal.tsx b/webapp/channels/src/components/add_groups_to_team_modal/add_groups_to_team_modal.tsx index 6b768a1b95..757309aecf 100644 --- a/webapp/channels/src/components/add_groups_to_team_modal/add_groups_to_team_modal.tsx +++ b/webapp/channels/src/components/add_groups_to_team_modal/add_groups_to_team_modal.tsx @@ -12,7 +12,6 @@ import {SyncableType} from '@mattermost/types/groups'; import Nbsp from 'components/html_entities/nbsp'; import MultiSelect from 'components/multiselect/multiselect'; import type {Value} from 'components/multiselect/multiselect'; -import AddIcon from 'components/widgets/icons/fa_add_icon'; import groupsAvatar from 'images/groups-avatar.png'; import Constants from 'utils/constants'; @@ -222,7 +221,7 @@ export default class AddGroupsToTeamModal extends React.PureComponent
- +
diff --git a/webapp/channels/src/components/add_user_to_group_multiselect/multiselect_option/multiselect_option.tsx b/webapp/channels/src/components/add_user_to_group_multiselect/multiselect_option/multiselect_option.tsx index 778c81160f..ceb6c98bc1 100644 --- a/webapp/channels/src/components/add_user_to_group_multiselect/multiselect_option/multiselect_option.tsx +++ b/webapp/channels/src/components/add_user_to_group_multiselect/multiselect_option/multiselect_option.tsx @@ -12,7 +12,6 @@ import {isGuest} from 'mattermost-redux/utils/user_utils'; import type {Value} from 'components/multiselect/multiselect'; import ProfilePicture from 'components/profile_picture'; -import AddIcon from 'components/widgets/icons/fa_add_icon'; import BotTag from 'components/widgets/tag/bot_tag'; import GuestTag from 'components/widgets/tag/guest_tag'; @@ -58,7 +57,9 @@ const MultiSelectOption = React.forwardRef(({
- +
diff --git a/webapp/channels/src/components/add_users_to_team_modal/add_users_to_team_modal.tsx b/webapp/channels/src/components/add_users_to_team_modal/add_users_to_team_modal.tsx index 42eae05cf4..3191e623d4 100644 --- a/webapp/channels/src/components/add_users_to_team_modal/add_users_to_team_modal.tsx +++ b/webapp/channels/src/components/add_users_to_team_modal/add_users_to_team_modal.tsx @@ -14,7 +14,6 @@ import {isGuest} from 'mattermost-redux/utils/user_utils'; import MultiSelect from 'components/multiselect/multiselect'; import type {Value} from 'components/multiselect/multiselect'; import ProfilePicture from 'components/profile_picture'; -import AddIcon from 'components/widgets/icons/fa_add_icon'; import BotTag from 'components/widgets/tag/bot_tag'; import GuestTag from 'components/widgets/tag/guest_tag'; @@ -134,7 +133,9 @@ export default class AddUsersToTeamModal extends React.PureComponent
- +
diff --git a/webapp/channels/src/components/admin_console/billing/delete_workspace/delete_workspace_modal.tsx b/webapp/channels/src/components/admin_console/billing/delete_workspace/delete_workspace_modal.tsx index 88f6299482..046f4c9a3e 100644 --- a/webapp/channels/src/components/admin_console/billing/delete_workspace/delete_workspace_modal.tsx +++ b/webapp/channels/src/components/admin_console/billing/delete_workspace/delete_workspace_modal.tsx @@ -183,6 +183,7 @@ export default function DeleteWorkspaceModal(props: Props) { return ( diff --git a/webapp/channels/src/components/admin_console/license_settings/license_settings.scss b/webapp/channels/src/components/admin_console/license_settings/license_settings.scss index 1782039420..88ba400075 100644 --- a/webapp/channels/src/components/admin_console/license_settings/license_settings.scss +++ b/webapp/channels/src/components/admin_console/license_settings/license_settings.scss @@ -39,15 +39,6 @@ } } -.modal .modal-header .close { - opacity: 0.7; - - &:hover { - background: none; - opacity: 1; - } -} - .banner-start-trial { .license-trial-legal-terms { color: #3f4350; diff --git a/webapp/channels/src/components/admin_console/license_settings/modals/confirm_license_removal_modal.scss b/webapp/channels/src/components/admin_console/license_settings/modals/confirm_license_removal_modal.scss index 64255eb5a1..765a04b0d4 100644 --- a/webapp/channels/src/components/admin_console/license_settings/modals/confirm_license_removal_modal.scss +++ b/webapp/channels/src/components/admin_console/license_settings/modals/confirm_license_removal_modal.scss @@ -1,17 +1,7 @@ .ConfirmLicenseRemovalModal { - .modal-header { - border-bottom: none !important; - background: none !important; - - button.close { - span { - color: rgba(63, 67, 80, 0.56) !important; - } - } - } - .modal-body { padding-top: 0 !important; + padding-bottom: 40px !important; } .content-body { diff --git a/webapp/channels/src/components/admin_console/license_settings/modals/confirm_license_removal_modal.tsx b/webapp/channels/src/components/admin_console/license_settings/modals/confirm_license_removal_modal.tsx index 20ccd49ee6..a707ffe714 100644 --- a/webapp/channels/src/components/admin_console/license_settings/modals/confirm_license_removal_modal.tsx +++ b/webapp/channels/src/components/admin_console/license_settings/modals/confirm_license_removal_modal.tsx @@ -50,6 +50,7 @@ const ConfirmLicenseRemovalModal: React.FC = (props: Props): JSX.Element return ( = (props: Props): JSX.Element | null => { // Note: DO NOT LOCALISE THESE STRINGS. Legally we can not since the license is in English. return ( { className={'UploadLicenseModal'} show={show} id='UploadLicenseModal' + compassDesign={true} onExited={handleOnClose} > {uploadLicenseContent} diff --git a/webapp/channels/src/components/admin_console/permission_schemes_settings/edit_post_time_limit_modal/edit_post_time_limit_modal.tsx b/webapp/channels/src/components/admin_console/permission_schemes_settings/edit_post_time_limit_modal/edit_post_time_limit_modal.tsx index b14d7378a2..8fc18a07a7 100644 --- a/webapp/channels/src/components/admin_console/permission_schemes_settings/edit_post_time_limit_modal/edit_post_time_limit_modal.tsx +++ b/webapp/channels/src/components/admin_console/permission_schemes_settings/edit_post_time_limit_modal/edit_post_time_limit_modal.tsx @@ -95,7 +95,7 @@ export default function EditPostTimeLimitModal(props: Props) { id='edit_post.time_limit_modal.description' defaultMessage='Setting a time limit **applies to all users** who have the "Edit Post" permissions in any permission scheme.' /> -
+
+
+ {errorMessage} +
-
- {errorMessage} -
diff --git a/webapp/channels/src/components/air_gapped_self_hosted_purchase_modal/index.tsx b/webapp/channels/src/components/air_gapped_self_hosted_purchase_modal/index.tsx index 4f95572b01..d802cee237 100644 --- a/webapp/channels/src/components/air_gapped_self_hosted_purchase_modal/index.tsx +++ b/webapp/channels/src/components/air_gapped_self_hosted_purchase_modal/index.tsx @@ -20,6 +20,7 @@ export default function AirGappedSelfHostedPurhcaseModal() {
diff --git a/webapp/channels/src/components/announcement_bar/no_internet_connection/no_internet_connection.tsx b/webapp/channels/src/components/announcement_bar/no_internet_connection/no_internet_connection.tsx index 8a20657c11..e75427dec7 100644 --- a/webapp/channels/src/components/announcement_bar/no_internet_connection/no_internet_connection.tsx +++ b/webapp/channels/src/components/announcement_bar/no_internet_connection/no_internet_connection.tsx @@ -17,6 +17,7 @@ type NoInternetConnectionProps = { const NoInternetConnection: React.FC = (props: NoInternetConnectionProps) => { return ( diff --git a/webapp/channels/src/components/at_sum_members_mention/notification_from_members_modal.tsx b/webapp/channels/src/components/at_sum_members_mention/notification_from_members_modal.tsx index 4500ec2319..70dbb84f5f 100644 --- a/webapp/channels/src/components/at_sum_members_mention/notification_from_members_modal.tsx +++ b/webapp/channels/src/components/at_sum_members_mention/notification_from_members_modal.tsx @@ -115,9 +115,14 @@ function NotificationFromMembersModal(props: Props) { const modalTitle = formatMessage({id: 'postypes.custom_open_pricing_modal_post_renderer.membersThatRequested', defaultMessage: 'Members that requested '}); - const modalHeaderText = (

- {`${modalTitle}${mapFeatureIdToTranslation(props.feature, formatMessage)}`} -

); + const modalHeaderText = ( +

+ {`${modalTitle}${mapFeatureIdToTranslation(props.feature, formatMessage)}`} +

+ ); return ( + > + + + + -
-

- -

-
@@ -135,28 +136,29 @@ exports[`components/channel_invite_modal should match snapshot for channel_invit closeButton={true} closeLabel="Close" id="channelInviteModalLabel" - /> + > + + + + -
-

- -

-
@@ -256,28 +258,29 @@ exports[`components/channel_invite_modal should match snapshot with exclude and closeButton={true} closeLabel="Close" id="channelInviteModalLabel" - /> + > + + + + -
-

- -

-
diff --git a/webapp/channels/src/components/channel_invite_modal/channel_invite_modal.tsx b/webapp/channels/src/components/channel_invite_modal/channel_invite_modal.tsx index acd278f1d5..058e75a334 100644 --- a/webapp/channels/src/components/channel_invite_modal/channel_invite_modal.tsx +++ b/webapp/channels/src/components/channel_invite_modal/channel_invite_modal.tsx @@ -23,7 +23,6 @@ import MultiSelect from 'components/multiselect/multiselect'; import type {Value} from 'components/multiselect/multiselect'; import ProfilePicture from 'components/profile_picture'; import ToggleModalButton from 'components/toggle_modal_button'; -import AddIcon from 'components/widgets/icons/fa_add_icon'; import BotTag from 'components/widgets/tag/bot_tag'; import GuestTag from 'components/widgets/tag/guest_tag'; @@ -425,7 +424,9 @@ export default class ChannelInviteModal extends React.PureComponent
- +
@@ -451,18 +452,6 @@ export default class ChannelInviteModal extends React.PureComponent{this.state.inviteError}); } - const header = ( -

- -

- ); - const buttonSubmitText = localizeMessage('multiselect.add', 'Add'); const buttonSubmitLoadingText = localizeMessage('multiselect.adding', 'Adding...'); @@ -556,14 +545,24 @@ export default class ChannelInviteModal extends React.PureComponent + > + + + + -
- {header} -
{inviteError}
{content} diff --git a/webapp/channels/src/components/channel_selector_modal/channel_selector_modal.tsx b/webapp/channels/src/components/channel_selector_modal/channel_selector_modal.tsx index 17e5803601..153820d2f3 100644 --- a/webapp/channels/src/components/channel_selector_modal/channel_selector_modal.tsx +++ b/webapp/channels/src/components/channel_selector_modal/channel_selector_modal.tsx @@ -187,7 +187,7 @@ export default class ChannelSelectorModal extends React.PureComponent
- +
diff --git a/webapp/channels/src/components/cloud_start_trial/request_business_email_modal.tsx b/webapp/channels/src/components/cloud_start_trial/request_business_email_modal.tsx index 7638730c91..e4c6f449dd 100644 --- a/webapp/channels/src/components/cloud_start_trial/request_business_email_modal.tsx +++ b/webapp/channels/src/components/cloud_start_trial/request_business_email_modal.tsx @@ -102,6 +102,7 @@ const RequestBusinessEmailModal = ( return ( diff --git a/webapp/channels/src/components/common/carousel/carousel.scss b/webapp/channels/src/components/common/carousel/carousel.scss index 160396bac4..a0b53f8cad 100644 --- a/webapp/channels/src/components/common/carousel/carousel.scss +++ b/webapp/channels/src/components/common/carousel/carousel.scss @@ -4,7 +4,7 @@ width: 100%; min-width: 400px; height: 100%; - min-height: 400px; + min-height: 450px; @media screen and (max-width: 700px) { .container-slider { @@ -57,11 +57,12 @@ .container-footer { position: absolute; z-index: 2; - bottom: 3%; + bottom: 0; display: flex; width: 100%; align-items: center; justify-content: flex-start; + padding: 24px 0; .container-buttons { margin-left: auto; diff --git a/webapp/channels/src/components/confirm_modal.tsx b/webapp/channels/src/components/confirm_modal.tsx index 1e9057c370..31508bed23 100644 --- a/webapp/channels/src/components/confirm_modal.tsx +++ b/webapp/channels/src/components/confirm_modal.tsx @@ -169,7 +169,7 @@ export default class ConfirmModal extends React.Component { aria-labelledby='confirmModalLabel' aria-describedby='confirmModalBody' > - + - - - - + + + + +
{ { typeof this.props.backButtonCallback === 'function' ? ( - <> +
) : ( = (props: Props) => { div { flex: 1; - margin: 0 10px; } .dropdown-menu { diff --git a/webapp/channels/src/components/dnd_custom_time_picker_modal/dnd_custom_time_picker_modal.tsx b/webapp/channels/src/components/dnd_custom_time_picker_modal/dnd_custom_time_picker_modal.tsx index 42dc1b152f..ad8252c74b 100644 --- a/webapp/channels/src/components/dnd_custom_time_picker_modal/dnd_custom_time_picker_modal.tsx +++ b/webapp/channels/src/components/dnd_custom_time_picker_modal/dnd_custom_time_picker_modal.tsx @@ -237,6 +237,7 @@ export default class DndCustomTimePicker extends React.PureComponent ariaLabel={localizeMessage('rename_category_modal.renameCategory', 'Rename Category')} modalHeaderText={modalHeaderText} confirmButtonText={editButtonText} + compassDesign={true} onExited={this.props.onExited} handleEnterKeyPress={this.handleConfirm} handleConfirm={this.handleConfirm} diff --git a/webapp/channels/src/components/edit_channel_header_modal/__snapshots__/edit_channel_header_modal.test.tsx.snap b/webapp/channels/src/components/edit_channel_header_modal/__snapshots__/edit_channel_header_modal.test.tsx.snap index 104d8008a5..c5b1470a59 100644 --- a/webapp/channels/src/components/edit_channel_header_modal/__snapshots__/edit_channel_header_modal.test.tsx.snap +++ b/webapp/channels/src/components/edit_channel_header_modal/__snapshots__/edit_channel_header_modal.test.tsx.snap @@ -90,7 +90,6 @@ exports[`components/EditChannelHeaderModal edit direct message channel 1`] = ` updatePreview={[Function]} />
-
-
@@ -362,7 +360,6 @@ exports[`components/EditChannelHeaderModal error without intl message 1`] = ` updatePreview={[Function]} />
-
@@ -499,7 +496,6 @@ exports[`components/EditChannelHeaderModal should match snapshot, init 1`] = ` updatePreview={[Function]} />
-
-
-
{this.renderError()} diff --git a/webapp/channels/src/components/invitation_modal/invitation_modal.scss b/webapp/channels/src/components/invitation_modal/invitation_modal.scss index f82eac2189..45646d93ba 100644 --- a/webapp/channels/src/components/invitation_modal/invitation_modal.scss +++ b/webapp/channels/src/components/invitation_modal/invitation_modal.scss @@ -13,79 +13,4 @@ margin: auto; transform: translate(-50%, -50%) !important; } - - .modal-header, - .modal-footer { - padding: 24px; - } - - .modal-body { - overflow: visible; - max-height: none; - padding: 0 24px; - } - - .InvitationModal__header { - display: flex; - align-items: center; - justify-content: space-between; - border: none; - font-size: 22px; - font-weight: 600; - - h1 { - margin: 0; - font-size: 22px; - font-weight: 600; - } - - &::before, - &::after { - display: none; - } - - // beat regular modal-header in specificity - &.modal-header { - background-color: var(--center-channel-bg); - color: var(--center-channel-color); - } - - .icon-close { - padding: 0; - border: none; - -moz-appearance: none; - -webkit-appearance: none; - appearance: none; - background: none; - color: rgb(var(--center-channel-color-rgb), 0.56); - cursor: pointer; - font: inherit; - outline: inherit; - - &:hover, - &:active, - &:focus { - color: rgb(var(--center-channel-color-rgb), 0.56); - } - } - } - - &__footer { - border-top: none; - - .btn { - border-radius: 4px; - } - } - - .btn.btn-primary:disabled { - background-color: rgba(var(--center-channel-color-rgb), 0.08); - color: rgba(var(--center-channel-color-rgb), 0.32); - - &:hover { - border-color: rgba(var(--center-channel-color-rgb), 0.08); - background-color: rgba(var(--center-channel-color-rgb), 0.08); - color: rgba(var(--center-channel-color-rgb), 0.32); - } - } } diff --git a/webapp/channels/src/components/invitation_modal/invitation_modal.tsx b/webapp/channels/src/components/invitation_modal/invitation_modal.tsx index 2859a52681..fe5701125e 100644 --- a/webapp/channels/src/components/invitation_modal/invitation_modal.tsx +++ b/webapp/channels/src/components/invitation_modal/invitation_modal.tsx @@ -411,7 +411,7 @@ export class InvitationModal extends React.PureComponent { -

+

{!cloudFreeDeprecated && ( diff --git a/webapp/channels/src/components/pricing_modal/pricing_modal.scss b/webapp/channels/src/components/pricing_modal/pricing_modal.scss index 2366782e89..40247dc2f4 100644 --- a/webapp/channels/src/components/pricing_modal/pricing_modal.scss +++ b/webapp/channels/src/components/pricing_modal/pricing_modal.scss @@ -6,10 +6,6 @@ width: 1440px; margin: auto; transform: translate(-50%, -50%) !important; - - .modal-content { - background-color: var(--center-channel-bg); - } } .modal-header { @@ -21,7 +17,6 @@ display: flex; align-items: center; justify-content: space-between; - padding: 28px 32px; border: none; border-bottom: 1px solid rgba(var(--center-channel-color-rgb), 0.08); font-size: 22px; @@ -58,31 +53,6 @@ &::after { display: none; } - - // beat regular modal-header in specificity - &.modal-header { - background-color: var(--center-channel-bg); - color: var(--center-channel-color); - } - - .icon-close { - padding: 0; - border: none; - -moz-appearance: none; - -webkit-appearance: none; - appearance: none; - background: none; - color: rgb(var(--center-channel-color-rgb), 0.56); - cursor: pointer; - font: inherit; - outline: inherit; - - &:hover, - &:active, - &:focus { - color: rgb(var(--center-channel-color-rgb), 0.56); - } - } } .modal-body { diff --git a/webapp/channels/src/components/pricing_modal/self_hosted_content.tsx b/webapp/channels/src/components/pricing_modal/self_hosted_content.tsx index 9394811810..cf5e7dcd7c 100644 --- a/webapp/channels/src/components/pricing_modal/self_hosted_content.tsx +++ b/webapp/channels/src/components/pricing_modal/self_hosted_content.tsx @@ -167,14 +167,16 @@ function SelfHostedContent(props: ContentProps) { {renderAlert()} diff --git a/webapp/channels/src/components/quick_input/quick_input.tsx b/webapp/channels/src/components/quick_input/quick_input.tsx index fd1c3d82ea..426bbca321 100644 --- a/webapp/channels/src/components/quick_input/quick_input.tsx +++ b/webapp/channels/src/components/quick_input/quick_input.tsx @@ -196,7 +196,7 @@ export class QuickInput extends React.PureComponent { ); const showClearButton = this.props.onClear && (clearableWithoutValue || (clearable && value)); - return (
+ return (
{inputElement} {showClearButton &&
-
+ +
diff --git a/webapp/channels/src/components/quick_switch_modal/quick_switch_modal.tsx b/webapp/channels/src/components/quick_switch_modal/quick_switch_modal.tsx index 13e8208140..7b128460bd 100644 --- a/webapp/channels/src/components/quick_switch_modal/quick_switch_modal.tsx +++ b/webapp/channels/src/components/quick_switch_modal/quick_switch_modal.tsx @@ -197,10 +197,10 @@ export default class QuickSwitchModal extends React.PureComponent animation={false} > - + >
{help}
+ +
-
+
-
+
-
+
-
+
-
+
{ if (channelsToDisplay.length >= this.props.channelsPerPage && pageEnd < this.props.channels.length) { nextButton = (