Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/version-language-switcher/HelpButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export function HelpButton() {
};

return (
<GoabTooltip content="More information">
<GoabIconButton ml={"s"}
mr={"s"}
<GoabTooltip content="Version and framework info">
<GoabIconButton ml={"xs"}
mb={"2xs"}
variant="color"
size="small"
icon="help-circle"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
GoabIcon,
GoabPopover, GoabTooltip
GoabPopover
} from "@abgov/react-components";
import {
ANGULAR_VERSIONS, getVersionedUrlPath, Language, LanguageVersion,
Expand Down Expand Up @@ -103,7 +103,7 @@ export const VersionLanguageSwitcher = () => {

return (
<>
<GoabTooltip content="Framework">
<div className="version-language-switcher">
<GoabPopover
target={
<a className="version-language-switcher__heading" href="#" id="language-switcher" onClick={e => openLanguagePopOver(e)}>
Expand All @@ -119,9 +119,7 @@ export const VersionLanguageSwitcher = () => {
}
</>
</GoabPopover>
</GoabTooltip>

<GoabTooltip content="Version">
<GoabPopover target={
<a className="version-language-switcher__heading" href="#"
onClick={e => openVersionPopOver(e)}>
Expand All @@ -136,7 +134,7 @@ export const VersionLanguageSwitcher = () => {
))}
</>
</GoabPopover>
</GoabTooltip>
</div>
</>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
align-items: center;
gap: var(--goa-space-2xs);
font-size: var(--goa-font-size-2);
margin-left: var(--goa-space-m);
white-space: nowrap;
height: 20px;
}
Expand All @@ -30,13 +29,30 @@
align-items: center; /* vertically align content */
}

.version-language-switcher {
height: 20px;
display: flex;
flex-direction: row;
Comment thread
twjeffery marked this conversation as resolved.
align-items: center; /* vertically align content */
gap: var(--goa-space-s);
margin-bottom: var(--goa-space-xs);
}

@media (max-width: 623px) {
[slot="version"] {
display: flex; /* if needed to align items horizontally */
flex-direction: column;
flex-direction: row;
align-items: flex-start;
gap: 2px;
gap: 0;
margin-top: 0;
height: auto;
}

.version-language-switcher {
height: auto;
flex-direction: column;
align-items: flex-start;
gap: 0;
margin-bottom: var(--goa-space-3xs);
}
}