-
Notifications
You must be signed in to change notification settings - Fork 4
BSL icon changes #11597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BSL icon changes #11597
Conversation
Size Change: -844 B (-0.08%) Total Size: 1.02 MB
ℹ️ View Unchanged
|
@@ -9,10 +9,14 @@ export function camelize(title: string): string { | |||
const titleArray = title.toLowerCase().split(/-|_| /); | |||
|
|||
return titleArray.reduce((acc, val, i) => { | |||
const alphanumericVal = val.replace(/\W/g, ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this camelize
function is used only as an id minter and in content/webapp/pages/events/[eventId]/index.tsx
.
It made sense to me to remove non alphanumerical value for both these cases (otherwise it returned something like britishSignLanguage(online)
instead of britishSignLanguageOnline
.
@@ -127,7 +127,8 @@ const getDescription = ({ | |||
}; | |||
|
|||
const eventInterpretationIcons: Record<string, IconSvg> = { | |||
britishSignLanguage, | |||
britishSignLanguageOnline: britishSignLanguageLive, | |||
britishSignLanguage: britishSignLanguageLive, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checking these are both expected to be britishSignLanguageLive
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YYYYYes I think it still makes sense. See the convo in ticket: #11516 (comment) let me know if you think it doesn't work out
What does this change?
#11516
Both the "British Sign Language" and "British Sign Language (online)" interpretation types are to display the hand icon:
http://localhost:3000/events/getting-started-with-research-at-wellcome-collection

http://localhost:3000/events/perspective-tour-with-anthony-manrique

There is currently no interpretation type to match the "BSL" icon, but it does get used in Exhibition Guides


How to test
How can we measure success?
Using the right, recognised icon for BSL across the site.
Have we considered potential risks?
Only used in a few places so all cases should've been addressed