Skip to content

Commit

Permalink
fix: improve minor styling errors in widget (#248)
Browse files Browse the repository at this point in the history
* Simplify code

* Set active tab text color to be white, selected tab text to be bold, and fix width of button in widget.
  • Loading branch information
jonasbrunvoll authored Mar 1, 2024
1 parent b977b9b commit 92c7edd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/widget/widget.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@
.tabSelected {
text-decoration: none;
border-bottom: 3px solid var(--static-background-background_accent_0-text);
font-weight: var(--baseTypo-body__primary--bold-fontWeight, 500);
}
.tabs a:hover {
color: var(--static-background-background_accent_1-text);
}
.tabs a:active {
color: var(--interactive-interactive_0-active-text);
color: var(--static-background-background_accent_0-text);
}

.main {
Expand Down Expand Up @@ -208,7 +209,7 @@
padding: var(--spacings-medium);
border-radius: var(--border-radius-regular);
}
.button,
.button span,
.buttonLightOutline span {
display: block;
flex: 1;
Expand Down
2 changes: 1 addition & 1 deletion src/widget/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const html = String.raw;
const MODULE_VERSION = process.env.MODULE_VERSION;
const COMPRESSED_ORG = process.env.COMPRESSED_ORG;
const ORG_ID = process.env.ORG_ID;
const useDefaultButtonStyle = ORG_ID !== 'fram' ? true : false;
const useDefaultButtonStyle = ORG_ID !== 'fram';

function createSettingsConstants(urlBase: string) {
if (!urlBase?.startsWith('http')) {
Expand Down

0 comments on commit 92c7edd

Please sign in to comment.