Skip to content

Commit a5903bf

Browse files
add globe icon and minor style changes
1 parent 37c41b6 commit a5903bf

File tree

3 files changed

+83
-63
lines changed

3 files changed

+83
-63
lines changed

src/features/common/components/bars/ribbon/assets/globe-icon.component.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ import React from "react";
33
export const GlobeIconComponent: React.FC = () => {
44
return (
55
<svg
6+
width="24"
7+
height="24"
68
viewBox="0 0 24 24"
79
fill="none"
810
xmlns="http://www.w3.org/2000/svg"
9-
aria-hidden="true"
1011
>
1112
<path
1213
fillRule="evenodd"
@@ -15,17 +16,20 @@ export const GlobeIconComponent: React.FC = () => {
1516
strokeWidth="1.5"
1617
strokeLinecap="round"
1718
strokeLinejoin="round"
19+
stroke="currentColor"
1820
></path>
1921
<path
2022
d="M2 12H22"
2123
strokeWidth="1.5"
2224
strokeLinecap="round"
2325
strokeLinejoin="round"
26+
stroke="currentColor"
2427
></path>
2528
<path
2629
fillRule="evenodd"
2730
clipRule="evenodd"
2831
d="M12 2C14.5013 4.73835 15.9228 8.29203 16 12C15.9228 15.708 14.5013 19.2616 12 22C9.49872 19.2616 8.07725 15.708 8 12C8.07725 8.29203 9.49872 4.73835 12 2V2Z"
32+
stroke="currentColor"
2933
strokeWidth="1.5"
3034
strokeLinecap="round"
3135
strokeLinejoin="round"

src/features/common/components/footer/footer.component.tsx

Lines changed: 67 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { Auth0LogoComponent } from "../../assets/auth0-logo.component";
2626
import { getBrandDictionary } from "@/features/localization/services/brand-dictionary.service";
2727
import { savePreferredLanguage } from "@/features/localization/services/ui-language.utils";
2828
import { UiLanguageModel } from "../../models/ui-language.model";
29+
import { GlobeIconComponent } from "../bars/ribbon/assets/globe-icon.component";
2930

3031
interface FooterComponentProps {
3132
languageCode: string;
@@ -186,68 +187,72 @@ export const FooterComponent: React.FC<FooterComponentProps> = ({
186187
{dictionary.copyright}
187188
</span>
188189
{dictionary.languagePicker.options.length > 1 && (
189-
<Select
190-
aria-label={"Language picker"}
191-
className={styles.languageSelect__container}
192-
onChange={handleChange}
193-
options={
194-
dictionary.languagePicker.options as OptionsOrGroups<
195-
UiLanguageModel,
196-
GroupBase<UiLanguageModel>
197-
>
198-
}
199-
menuPortalTarget={document.body}
200-
classNamePrefix={"language-select"}
201-
isSearchable={false}
202-
placeholder={currentLanguage.label}
203-
value={currentLanguage}
204-
styles={{
205-
control: (base) => ({
206-
...base,
207-
color: "var(--color_fg_default)",
208-
fontSize: "0.875rem",
209-
background: "transparent",
210-
border: "none",
211-
borderRadius: "0px",
212-
display: "flex",
213-
alignItems: "center",
214-
cursor: "pointer",
215-
minHeight: "2.5rem",
216-
boxSizing: "border-box",
217-
}),
218-
input: (base) => ({
219-
...base,
220-
margin: "0px",
221-
}),
222-
indicatorSeparator: () => ({
223-
display: "none",
224-
}),
225-
indicatorsContainer: (base) => ({
226-
...base,
227-
height: "20px",
228-
alignSelf: "center",
229-
}),
230-
dropdownIndicator: (base) => ({
231-
...base,
232-
padding: "0px",
233-
height: "100%",
234-
alignSelf: "center",
235-
}),
236-
valueContainer: (base) => ({
237-
...base,
238-
padding: "0px"
239-
}),
240-
singleValue: (base) => ({
241-
...base,
242-
color: "unset",
243-
}),
244-
menu: (base) => ({
245-
...base,
246-
top: "unset",
247-
bottom: "1.75rem",
248-
}),
249-
}}
250-
></Select>
190+
<div className={styles.subFooter__languagePicker}>
191+
<GlobeIconComponent />
192+
<Select
193+
aria-label={"Language picker"}
194+
className={styles.languageSelect__container}
195+
onChange={handleChange}
196+
options={
197+
dictionary.languagePicker.options as OptionsOrGroups<
198+
UiLanguageModel,
199+
GroupBase<UiLanguageModel>
200+
>
201+
}
202+
menuPortalTarget={document.body}
203+
classNamePrefix={"language-select"}
204+
isSearchable={false}
205+
placeholder={currentLanguage.label}
206+
value={currentLanguage}
207+
styles={{
208+
control: (base, state) => ({
209+
...base,
210+
fontSize: "0.875rem",
211+
background: "transparent",
212+
border: "none",
213+
borderRadius: "0px",
214+
display: "flex",
215+
alignItems: "center",
216+
cursor: "pointer",
217+
minHeight: "2.5rem",
218+
boxSizing: "border-box",
219+
boxShadow: "none",
220+
}),
221+
input: (base) => ({
222+
...base,
223+
margin: "0px",
224+
}),
225+
indicatorSeparator: () => ({
226+
display: "none",
227+
}),
228+
indicatorsContainer: (base) => ({
229+
...base,
230+
height: "20px",
231+
alignSelf: "center",
232+
}),
233+
dropdownIndicator: (base) => ({
234+
...base,
235+
padding: "0px",
236+
height: "100%",
237+
alignSelf: "center",
238+
}),
239+
valueContainer: (base) => ({
240+
...base,
241+
padding: "0px",
242+
}),
243+
singleValue: (base) => ({
244+
...base,
245+
color: "unset",
246+
}),
247+
menu: (base) => ({
248+
...base,
249+
top: "unset",
250+
bottom: "1.75rem",
251+
right: "0",
252+
}),
253+
}}
254+
/>
255+
</div>
251256
)}
252257
</div>
253258
</BoxComponent>

src/features/common/components/footer/footer.module.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,3 +267,14 @@
267267

268268
color: var(--color_fg_default);
269269
}
270+
271+
.subFooter__languagePicker {
272+
display: flex;
273+
align-items: center;
274+
gap: 0.25rem;
275+
color: var(--color_fg_default);
276+
277+
&:focus-within {
278+
color: (var(--color_fg_bold));
279+
}
280+
}

0 commit comments

Comments
 (0)