Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix headings margin on security user settings tab (#8826)
Browse files Browse the repository at this point in the history
* Apply kind=link to 'Learn more' link on security user settings tab

Signed-off-by: Suguru Hirahara <[email protected]>

* Remove specific margin setting from heading on security user settings tab

Signed-off-by: Suguru Hirahara <[email protected]>
  • Loading branch information
luixxiul authored Jul 6, 2022
1 parent 2ebb5eb commit afa8b01
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
6 changes: 0 additions & 6 deletions res/css/views/settings/tabs/_SettingsTab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@ limitations under the License.
}
}

.mx_SettingsTab_linkBtn {
cursor: pointer;
color: $accent;
word-break: break-all;
}

.mx_SettingsTab_toggleWithDescription {
margin-top: $spacing-24;
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ limitations under the License.
}

.mx_SecurityUserSettingsTab {
.mx_SettingsTab_heading {
margin-bottom: 22px;
}
.mx_SettingsTab_section {
.mx_AccessibleButton_kind_link {
font-size: inherit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,12 @@ export default class SecurityUserSettingsTab extends React.Component<IProps, ISt
{ _t("Share anonymous data to help us identify issues. Nothing personal. " +
"No third parties.") }
</p>
<p>
<AccessibleButton className="mx_SettingsTab_linkBtn" onClick={onClickAnalyticsLearnMore}>
{ _t("Learn more") }
</AccessibleButton>
</p>
<AccessibleButton
kind="link"
onClick={onClickAnalyticsLearnMore}
>
{ _t("Learn more") }
</AccessibleButton>
</div>
{ PosthogAnalytics.instance.isEnabled() && (
<SettingsFlag
Expand Down

0 comments on commit afa8b01

Please sign in to comment.