mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-13 10:36:28 +03:00
5219b6be80
* Add a new flag pseudonymousAnalyticsOptIn replacing analyticsOptIn, stored at account level, so people only need to opt in once. * Show a toast in login to users that have analyticsOptIn set but not yet pseudonymousAnalyticsOptIn prompting them confirm the new method is okay. Update the copy of the existing opt-in toast. Don't notify users that previously opted out. * Update the copy in settings * Add a new learn more dialog * Support a new config flag analyticsOwner which is used in these toasts when explaining which entity the data is sent to ("Help improve %(analyticsOwner)"). If unset, display brand. This allows deployments whose brand differs from the receiver of the analytics to explain the situation to their users (e.g. AcmeCorp badges their app, but explains the data is sent to Element, not them) * The new opt-in and flags are only used when posthog is configured; prior to that there are no changes to UX or tracking behaviour.
31 lines
967 B
SCSS
31 lines
967 B
SCSS
/*
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
.mx_AnalyticsToast {
|
|
.mx_AccessibleButton_kind_danger_outline {
|
|
background-color: $accent;
|
|
color: #ffffff;
|
|
border: 1px solid $accent;
|
|
font-weight: $font-semi-bold;
|
|
}
|
|
|
|
.mx_AccessibleButton_kind_primary {
|
|
background-color: $accent;
|
|
color: #ffffff;
|
|
border: 1px solid $accent;
|
|
font-weight: $font-semi-bold;
|
|
}
|
|
}
|