<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Christina Roise on Medium]]></title>
        <description><![CDATA[Stories by Christina Roise on Medium]]></description>
        <link>https://medium.com/@christinaroise?source=rss-6306c46422b1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qZoQiNZbGbit2KZW4j3BGw.png</url>
            <title>Stories by Christina Roise on Medium</title>
            <link>https://medium.com/@christinaroise?source=rss-6306c46422b1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:56:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@christinaroise/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Next.js and Sanity For Dummies: From Setup to Integration — Part II]]></title>
            <link>https://medium.com/@christinaroise/next-js-and-sanity-for-dummies-from-setup-to-integration-part-ii-4ac729012771?source=rss-6306c46422b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ac729012771</guid>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[headless-cms]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[sanity]]></category>
            <dc:creator><![CDATA[Christina Roise]]></dc:creator>
            <pubDate>Tue, 14 May 2024 12:52:40 GMT</pubDate>
            <atom:updated>2024-05-14T12:52:40.241Z</atom:updated>
            <content:encoded><![CDATA[<h3>Next.js and Sanity For Dummies: From Setup to Integration — Part II</h3><h4>In this second part of our “Next.js and Sanity for Dummies” series, I’ll guide you through setting up a new Next.js project, explain the different architectural choices for managing your code, and provide a comprehensive guide to integrating Sanity as your backend CMS.</h4><h4>Welcome back, Next.js enthusiasts and Sanity newbies!</h4><p>In our first dance with Sanity and Next.js, we unpacked the mystery of headless CMS and got a glimpse of what this dynamic duo can achieve. If you missed that introductory waltz, fear not—you can catch up <a href="https://medium.com/@christinaroise/sanity-next-js-for-dummies-part-i-fc6107311974">here</a>!</p><p><strong>Shifting Gears: From Theory to Practice<br></strong>Now that we’re a little cozier with the concepts of headless and traditional CMS, it’s time to roll up our sleeves and dive into the nuts and bolts of setting things up. In part two of “Sanity + Next.js for Dummies,” we’re shifting gears from “what is this all about?” to “how do I make the magic happen?”.</p><p>We’ll walk through setting up a fresh Next.js project and integrate it with Sanity from the ground up. More than just a step-by-step guide, I want to arm you with the ‘whys’ and ‘what-fors’ so you understand each step in the process. This isn’t just about getting things to work; it’s about making you fluent in the language of Next.js and Sanity—so you can craft digital experiences with confidence and creativity.</p><p>Let’s get started and transform that blank canvas into a masterpiece of functionality and flair! ✨</p><h4>Prerequisites</h4><p>Before we dip our toes in the water, let’s make sure you have everything you need to follow along without a hitch. This part requires a few tools and a sprinkle of knowledge. So, here’s what you should have at your command:</p><ol><li><strong>Node.js</strong>: This is the backbone of our operation, Node.js is essential. If it’s not already purring away on your machine, head over to <a href="https://nodejs.org/">nodejs.org</a> to download and install it. This will also install npm, which is Node&#39;s package manager that we’ll use to handle our project&#39;s dependencies.</li><li><strong>Yarn (Optional):</strong> While npm does the job, some prefer using Yarn for managing packages. It’s quick, efficient, and easy to use. You can install Yarn through npm by running npm install --global yarn. Decide which package manager you feel more comfortable with, as you’ll use it to install our project&#39;s libraries.</li><li><strong>Basic Knowledge of React</strong>: Next.js is built on React. You don’t need to be a React wizard, but familiarity with React’s components, JSX, and state management will help you understand the content more deeply and troubleshoot with greater ease.</li><li><strong>Understanding of TypeScript</strong>: As we’re using TypeScript instead of plain JavaScript, a good grasp on TypeScript’s syntax and features like types, interfaces, and generics is crucial. This adds a powerful layer of type safety and developer productivity to our Next.js project.</li><li><strong>A Code Editor:</strong> While any text editor works, I recommend using something like <a href="https://code.visualstudio.com/">Visual Studio Code</a>. It’s free, powerful, and comes with a ton of extensions that can make your coding experience smoother and more productive.</li><li><strong>An Account on Sanity.io:</strong> We’ll be using Sanity as our backend, so make sure you have an account set up. It’s free to start, and you can register at <a href="https://www.sanity.io/">sanity.io</a>.</li></ol><p>With these tools and a bit of knowledge, you’ll be perfectly equipped to tackle the setup and configuration of a Next.js project integrated with Sanity.</p><p>Ready? Let’s get to it!</p><h4>Exploring Different Architectural Choices</h4><p>Before we can really roll up our sleeves and dive into our Next.js project with Sanity, we should take a moment to understand the different ways to structure such a project. The choice largely depends on your project’s scale, the team’s structure, and how you plan to manage and deploy your code. There are a few approaches we can make, and I’m going to list three of them:</p><p><strong>1. Unified Repository: Simplified Management<br></strong>A unified repository is like keeping all your eggs in one basket—neatly organized and easy to manage. It’s a setup that’s ideal if you’re building a project where the front-end and the back-end are tightly coupled and managed as a single unit. What it does, is that it simplifies development workflows, reduces the overhead of maintaining multiple repositories, and it streamlines the development process.</p><figure><img alt="Diagram showing a unified repository structure with two sections: ‘API’ in green on top and ‘Front-end’ in orange below. Both sections are encompassed within a larger, light green area labeled ‘Unified repository’, indicating a cohesive management of both components." src="https://cdn-images-1.medium.com/max/1024/1*9jkKn7omQB2YjeLn7LXZOw.png" /><figcaption>Illustration of a unified repository</figcaption></figure><p><strong>2. Monorepo: Shared Resources Under One Roof<br></strong>A monorepo, on the other hand, is like a big family home where everyone—parents, kids, and maybe a few cousins—lives under the same roof. In technical terms, it means managing multiple projects within a single repository but keeping them in separate directories. This setup is beneficial if you have multiple applications that might rely on the same back-end, shared components or algorithms. For example, you could have one Sanity instance serving as the CMS for several different Next.js applications. Another plus, is that this approach helps in sharing common dependencies and libraries, making updates more manageable across projects.</p><figure><img alt="Diagram of a monorepo structure, depicted by three stacked rectangles labeled ‘API’, ‘WEB’, and ‘Mobile’ from top to bottom, each in different colors: green, orange, and pink. These rectangles are enclosed within a dotted line box, illustrating that all components are part of a single repository but are maintained as separate directories." src="https://cdn-images-1.medium.com/max/1024/1*kEmRnLULPSNWDPrIb3R7UA.png" /><figcaption>Illustration of a monorepo</figcaption></figure><p><strong>3. Multi-repo: Independent Development and Deployment<br></strong>Lastly, we’ve got a multi-repo. It’s an approach quite like having each member of the family living in their own respective houses. Each project (front-end, back-end, libraries, etc.) lives in its own repository. This is especially useful when you’ve got different teams working on different parts of a project with little overlap in dependencies, or if the projects are large enough that they warrant independent development and deployment cycles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B_H65PqF_92zYqfaIcCrUg.png" /><figcaption>Illustration of a multi-repo</figcaption></figure><h4>Choosing the Right Architectural Model for Your Project</h4><p>Deciding between a unified repository, a monorepo, or a multi-repo setup isn’t just about personal preference — it’s about what fits your project like a glove. If you’re juggling a smaller project or just starting out, the unified repository approach is your best bet. It keeps everything simple and straightforward, letting you focus more on learning rather than wrestling with complex configurations.</p><p>On the other hand, if your project is expanding into a suite of applications that share a common core, or if you’re part of a larger team, stepping up to a monorepo could be a game-changer. It allows you to manage shared dependencies more efficiently and keeps all your eggs in one basket without putting them all in the same omelette.</p><p>And for those of you working on large-scale projects with multiple teams where each component evolves independently, a multi-repo approach will give each team the autonomy they need to deploy updates at light speed without stepping on each other’s toes. Each setup has its stage and spotlight, so choose the one that aligns with the scale and dynamics of your project!</p><p>For this tutorial, we’re choosing a <strong>unified repository</strong>.</p><p>Right…why does that make sense again? Because it offers simplicity and ease of management. It’s perfect as we’re just starting out, and it’s going to allow us to focus more on learning, and less on configuration. 🎉</p><h4>Setting Up Next.js—<strong>Building the Foundation</strong></h4><p>Now that we know what our architectural approach is going to be, we can set up our Next.js project—that is, if you don’t already have one ready to integrate with Sanity. In which case, feel free to skip ahead to the next step.</p><p><strong>Preparing Our Development Environment<br></strong>Open your terminal and make sure you are in the desired folder. By “desired,” I mean a folder in which you want your Next.js project to be created. I usually have a dedicated folder to all things development, so in this case I’ll navigate there:</p><pre>cd ~/development</pre><p>If you don’t have a specific development directory, now might be a good time to create one:</p><pre>mkdir development<br>cd development</pre><p>“<em>I typically have all my projects scattered around!</em>”</p><p>Whatever rocks your boat, I guess. But having a dedicated space where you store all your dev projects can be highly beneficial! I mean:</p><p>✨🌈 Organization and structure 🌈 ✨</p><p>That, and ChatGPT lists other reasons, like: efficiency and productivity, version control and backup, environment management, security practices, ease of cleanup and maintenance, collaboration and sharing.</p><p>But by all means, if you prefer that wild, free-range style of project management, more power to you!</p><p><strong>Creating and Naming Your Project<br></strong>Decide on a project name. It should probably be concise and descriptive. I’ll go with insanity because Sanity… <em>Ba-dum-tss!</em> 🥁 Perfect timing for a classic dad joke!</p><p><strong>Importance of a Good Project Name<br></strong>While “insanity” gives us a chuckle and fits the fun vibe of our project, picking a project name in the professional sphere is no small feat. A strong, descriptive name can be your project’s first handshake — making a solid impression and setting the stage. It should encapsulate the essence of what your project is about, be easy to recall, and ideally, be simple enough to type (because nobody likes wrestling with typos in a long, complicated name during a coffee-fueled coding marathon).</p><p>Think of it as naming a superhero — something that’s catchy but also packs a punch about who they are and what amazing feats they can do.</p><p>So, while “insanity” fits the bill for us here, in a more buttoned-up setting, consider a name that would look good on a business card and clear enough to not leave people scratching their heads at a board meeting.</p><p><strong>Installing Next.js<br></strong>Moving on! Let’s continue by installing Next.js:</p><pre>npx create-next-app@latest</pre><p>On installation, you’ll see the following prompts, answer accordingly:</p><pre>What is your project named? insanity <br>Would you like to use TypeScript? Yes<br>Would you like to use ESLint? Yes<br>Would you like to use Tailwind CSS? No<br>Would you like to use `src/` directory? Yes<br>Would you like to use App Router? (recommended) Yes<br>Would you like to customize the default import alias (@/*)? No</pre><p>Of course we’re going to go with Typescript—it’s our coding superhero that saves the day by keeping the bugs at bay! 🦸 Sorta.</p><p>TypeScript helps us catch mistakes early in the development process, making our code cleaner and more predictable. With TypeScript, we get to craft this robust blueprint that’s easier to refactor, it’s more scalable, and a whole lot friendlier for collaboration. Plus, it’s got autocompletion. Chef’s kiss! 👌</p><p>Also, we’re not going to use Tailwind in this tutorial, but <a href="https://nextjs.org/docs/app/building-your-application/styling/css-modules#css-modules">CSS Modules</a>. If you’re one of those ‘Tailwind for the win’-type of devs, go for it! It really doesn’t matter. <em>Potato potato.</em></p><p>It’s just that I’ve got more experience in <a href="https://flutter.dev/">Flutter</a> and <a href="https://reactnative.dev/">React Native</a>, so when it comes to web development and CSS, I’ve come to really enjoy CSS Modules. It’s like giving each of my components its very own wardrobe, and styles don’t accidentally wander into the wrong party.</p><p>In more technical terms, styles are local to the component they belong to, so to avoid any unintended clashes. And what you end up with is a perfectly organized closet where everything has its place — pure bliss for any developer who’s had to deal with a chaotic style sheet, i.e. me! 🙋</p><p>So while Tailwind is fantastic for utility-first lovers, CSS Modules give us that sweet, snug control, making sure our styles stick right where we tell them to.</p><p><strong>Detailed Installation Instructions<br></strong>If it’s been correctly installed, you should be able to navigate to your project directory and kickstart your Next.js development server:</p><pre>cd insanity<br>npm run dev</pre><p>…and see the Next.js landing screen in your web browser, when visiting <a href="http://localhost:3000/">http://localhost:3000</a></p><figure><img alt="The default home page of a new Next.js 14 project" src="https://cdn-images-1.medium.com/max/1024/1*ztwpKuAGGC_onn1V4vaagQ.jpeg" /><figcaption>The default home page of a new Next.js 14 project</figcaption></figure><p>Now would be a good time to initialize a Git repository. Why? Because keeping your project under version control is crucial for managing changes and collaborating with others.</p><p>Initialize a Git repository by:</p><pre>git init</pre><p>Make sure that your .gitignore <strong>at least</strong> includes:</p><pre># dependencies<br>/node_modules<br><br># next.js<br>/.next/<br><br># local env files<br>.env*.local</pre><p>Now that our project is set up and we’ve verified that everything is tip-top, we can stage and commit our changes to our Git repository.</p><pre>git add .<br>git commit -m &quot;Initial setup of Next.js project&quot;</pre><h4><strong>Bringing Sanity into the Mix</strong></h4><p>Our next step should be integrating Sanity into our Next.js repository. Remember we’re going for a <strong>unified repository</strong>.</p><p><strong>Setting Up Without the CLI<br></strong>There are two ways to set up Sanity: by using the Sanity <a href="https://www.sanity.io/docs/cli-reference">Command Line Interface (CLI)</a> or by manually configuring it without the CLI.</p><p>The Sanity CLI, which is a tool provided by Sanity.io, is used to streamline tasks such as project initialization, data management, and deployment. It allows developers to quickly set up new projects, manage content schemas, and handle migrations with simple commands.</p><p><strong>Benefits of Manual Setup</strong><br>For this project, we’re opting to set up Sanity <em>without</em> using the Sanity CLI. While the CLI offers a streamlined and automated setup, working without it provides a deeper understanding of the underlying processes involved in configuring and managing a Sanity project. This approach allows us to:</p><ol><li><strong>Gain Better Insight:</strong> By handling setup and configuration manually, you’ll learn more about how Sanity operates, which can be valuable for troubleshooting and customizing your setup.</li><li><strong>Have Greater Control:</strong> Manually setting up your project gives you fine-grained control over every aspect of your configuration, allowing for more customized solutions tailored to your specific needs.</li><li><strong>Avoid Additional Tools:</strong> If you prefer to minimize the number of tools and dependencies in your workflow, skipping the CLI can simplify your development environment.</li></ol><p><strong>Initializing Sanity<br></strong>Let’s dive into the manual setup process:</p><pre>npx sanity@latest init --env --create-project &quot;insanity&quot; --dataset production</pre><p>If this is your first time setting up a Sanity project, you’ll likely be asked to login in, so enter your credentials.</p><p>Just as with setting up Next.js, you’ll see a bunch of prompts:</p><pre>&gt; Would you like to add configuration files for a Sanity project in this Next.js folder?<br>Yes<br><br>&gt; Do you want to use TypeScript?<br>Yes<br><br>&gt; Would you like an embedded Sanity Studio?<br>Yes<br><br>&gt; Would you like to use the Next.js app directory for routes? <br>Yes<br><br>&gt; What route do you want to use for the Studio?<br>/studio<br><br>&gt; Select project template to use <br>Clean project with no predefined schema types<br><br>&gt; Would you like to add the project ID and dataset to your .env file?<br>Yes</pre><p><strong>Configuring Your Environment</strong><br>Before we celebrate a successful installation, let’s check our environment file. Remember that it should be named .env.local, so rename it, if it’s named .env. Also, ensure that this file does <strong>not</strong> get checked into git. We’re going to add secret tokens later, so it’s important that this file remains local.</p><pre># ./.env.local<br><br>NEXT_PUBLIC_SANITY_PROJECT_ID=&quot;your-project-id&quot;<br>NEXT_PUBLIC_SANITY_DATASET=&quot;production&quot;</pre><p>Now you should be able to navigate to <a href="http://localhost:3000/studio">http://localhost:3000/studio</a>. You’ll likely be prompted with a CORS origin access:</p><figure><img alt="A CORS Origin prompt to access content" src="https://cdn-images-1.medium.com/proxy/1*87dujn0KGwNSVZB7JzxC0w.png" /><figcaption>A CORS Origin prompt to access content</figcaption></figure><p><strong>Handling CORS for Secure Interactions</strong><br>When setting up a Sanity project, it’s crucial to configure CORS to allow requests from the Next.js domain.</p><p><em>Right, what is CORS?</em></p><p>CORS (Cross-Origin Resource Sharing) is a security feature built into web browsers that helps protect users from malicious attacks, like cross-site scripting. In ELI-5 terms: it ensures that data are only shared between websites that trust each other.</p><p>To set up access, you’ll need to navigate to <a href="https://www.sanity.io/">Sanity.io</a>, select your project, and head to the administration-tab. Scroll down a bit and you’ll find <strong>CORS origins</strong>. Most likely this will contain <a href="http://localhost:3333/">http://localhost:3333</a>.</p><p>Port 3333 is default Sanity CORS origin, but we want to run our Next.js application on port 3000.</p><p>Click the “Add CORS Origin”-button to add <a href="http://localhost:3000/">http://localhost:3000/</a>, make sure to allow credentials.</p><figure><img alt="A pre-filled form to add CORS origin, checkbox for ‘allow credentials is checked" src="https://cdn-images-1.medium.com/max/1024/1*y6KN0EiGAEOc68ZXinEkcQ.png" /><figcaption>A pre-filled form to add CORS origin, checkbox for ‘allow credentials is checked</figcaption></figure><p>Coolio! Now our setup allows our Next.js application to interact securely with the Sanity backend. 👏</p><p>Navigate back to <a href="http://localhost:3000/studio">http://localhost:3000/studio</a>, you should now be asked to log in. I’d choose to login with your GitHub account, but it’s your pick.</p><figure><img alt="Prompt to choose login provider: Google, Github, Email/Password" src="https://cdn-images-1.medium.com/max/1024/1*khCrv_6qGK3-fdzvb5WNtg.png" /><figcaption>Prompt to choose login provider: Google, GitHub, E-mail/password</figcaption></figure><p>And hooray — you’ve now entered your very own Sanity Studio! 👏</p><figure><img alt="An empty Sanity Studio Interface, with a ‘No tocument types’ warning message" src="https://cdn-images-1.medium.com/max/1024/1*KjKSKkV1-qmPgYgBRk79_w.png" /><figcaption>An empty Sanity Studio Interface, with a ‘No tocument types’ warning message</figcaption></figure><h4>Congratulations!</h4><p>We’ve successfully set up a Next.js project and integrated it with Sanity, taking our first steps towards creating dynamic, content-driven web applications. 👏</p><p>By now, you should have a solid understanding of the different architectural choices available and how to configure your environment to best suit your project’s needs.</p><h4>But, what’s Next?</h4><p>While you wait for Part III, you can start exploring:</p><ul><li><strong>Defining Content Models</strong>: Start creating content schemas in Sanity that fit your project’s requirements. This could be models for blog posts, products, pages, or any other content type you need.</li><li><strong>Fetching and Displaying Content</strong>: Use Sanity’s APIs to fetch your content and display it in your Next.js application. Explore GROQ queries to efficiently retrieve the data you need.</li><li><strong>Enhancing the Frontend</strong>: Implement advanced features in your Next.js app, such as dynamic routing, server-side rendering (SSR), and static site generation (SSG), to improve performance and SEO.</li><li><strong>Styling Components</strong>: Apply CSS Modules, Tailwind CSS, or your preferred styling method to make your application visually appealing and consistent with your design goals.</li><li><strong>Deploying the Application</strong>: When you’re ready, deploy your Next.js application to a hosting provider like Vercel, Netlify, or your preferred platform. Make sure to configure environment variables and CORS settings properly for production.</li></ul><p>So long! 👋</p><p>Loving my content? Support me by buying me a cup of coffee! (Click the image-link down below 👇).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/213/0*XOXsuhs_0Dwf7P81.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ac729012771" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sanity + Next.js For Dummies PART I]]></title>
            <link>https://medium.com/@christinaroise/sanity-next-js-for-dummies-part-i-fc6107311974?source=rss-6306c46422b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc6107311974</guid>
            <category><![CDATA[cms]]></category>
            <category><![CDATA[sanityio]]></category>
            <category><![CDATA[headless-cms]]></category>
            <category><![CDATA[sanity]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[Christina Roise]]></dc:creator>
            <pubDate>Wed, 03 Apr 2024 09:49:58 GMT</pubDate>
            <atom:updated>2024-04-03T09:49:58.605Z</atom:updated>
            <content:encoded><![CDATA[<h4>If you’re wondering what a headless CMS is, or how to integrate Sanity to a Next.js repository, this article is written just for you.</h4><p>Right, so this is an extended introduction for those of you with good-enough Next.js knowledge, but next-to-nothing of <a href="https://www.sanity.io/">Sanity</a>. This is more or less an outcome from a lightning talk I had at work. I was covering pitfalls of Sanity with Next.js, only to realize that not everybody has tested Sanity — just yet. I have a tendency to think that everything I just learned, others have known for years. <em>Note to self: stop it.</em></p><p>You see, as a pro-bono project, my team at Variant and I created a website for <a href="https://www.pmdd.no/">PMDD Norge</a> with Next.js and Sanity. It was the type of project where we focus on doing something good for our community, while also gaining some new skill sets, or diving deeper into what we already know.</p><figure><a href="https://www.sanity.io/plugins/next-sanity"><img alt="" src="https://cdn-images-1.medium.com/max/996/1*lvahEuMXuwJx8S2E7ErrhA.png" /></a></figure><p>So, why did we choose Sanity? For content management. We wanted the organization to have ownership of the content on their website, but we also had little knowledge of CMS, or even headless CMS. At the time, we could hardly tell you the difference…</p><p><strong>What’s the difference?</strong> Great question! I’d love to tell you.</p><p>The main difference between a traditional Content Management System (CMS) and a headless CMS is how the content is created, stored, and delivered.</p><p><strong>Traditional CMS </strong>has an integrated approach, some front-end limitations, and a monolithic architecture. This means that the content is created, managed, and presented to the end-user all <em>within the same</em> system. Both layers, the content management backend and the presentation layer (frontend), are tightly integrated; making it difficult to customize the user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*6tEPRiUoZnGPK9UAzfXyWQ.png" /><figcaption>An illustration of Traditional vs Headless CMS</figcaption></figure><p><strong>Headless CMS</strong>, on the other hand, has a separated architecture, a flexible frontend, and a content-as-a-service approach. In short, it separates the content management backend from the presentation layer (frontend). So the content, which is stored as data, can be accessed through an API on any front-end systems: websites, apps, IoT devices… And because it can be accessed through an API, the designers have more freedom. Yay! 🎉</p><p>Right, back to Sanity. At first, it might be a little tricky to wrap your head around it; because you’re defining data models in your next.js repository, while creating content in <a href="https://www.sanity.io/studio">Sanity Studio</a>, but Sanity themselves are storing the data…🤯</p><p><strong>What? </strong>Yes, let’s take a closer look.</p><h4>Where Is the Data Stored?</h4><p>You might have guessed right: it’s cloud-hosted. Sanity stores your data on its own cloud servers — a.k.a your data is accessible from anywhere, making it that much easier for us developers and content creators to collaborate in real-time!</p><p>All the data in Sanity is stored as structured content. This is a structure you as a developer define using schemas to represent different types of content; such as articles, authors, products, etc… Don’t worry, we’ll cover this too.</p><h4>What Is Sanity Studio?</h4><p>It’s a customizable editing environment, or interface of the Sanity platform. And when I say customizable, I mean it is fully customizable. It’s built with React.js, and if you like, you can tailor the studio to fit the project’s content models and workflows. And as mentioned above, it supports real-time collaboration, allowing multiple editors to work on the same document simultaneously.</p><h4>How Do I Structure the Data?</h4><p>With <a href="https://www.sanity.io/docs/schemas-and-forms">schema definitions</a>, or content models (potato, potato). These schemas describe the type of content (e.g., blog posts, user profiles) and their fields (e.g., title, body, author). And you define these in a Sanity-powered Next.js application, with plain JavaScript (or TypeScript) objects. The Sanity Studio then creates the forms and inputs needed to create and edit your content. <em>Brilliant.</em></p><p>And because it’s headless, the Next.js frontend then communicates with Sanity through API calls to fetch or mutate data. You can use Sanity’s own query language, <a href="https://www.sanity.io/docs/query-cheat-sheet">GROQ</a>, or <a href="https://www.sanity.io/docs/graphql">GraphQL</a> to retrieve your content.</p><p>Sanity also has some nifty client-side libraries for making the integration even more simple. As a few examples, you’ve got @sanity/client or @sanity/image-url that help with fetching data and generating image URLs. You’ve also got Sanity’s <a href="https://www.sanity.io/docs/presenting-block-text">portable text helpers</a> for presentation of rich text content.</p><h4>But What About SEO?</h4><p>Right, SEO. I’d love to say: “no worries,” because in many ways, headless CMS has a positive effect on your website’s SEO score, however, it depends greatly on how you implement and manage your content delivery.</p><p>There are some best practices to follow:</p><ol><li><strong>Choose Server-Side Rendering (SSR) or Static Site Generation (SSG): </strong>These can help ensure that search engines can crawl and index your content efficiently.</li><li><strong>Optimize Content Delivery:</strong> Use a Content Delivery Network (CDN) and optimize images and assets to ensure fast loading times. <em>You get this out of the box with Sanity!</em></li><li><strong>Do SEO Audits:</strong> <em>What now?</em> SEO Audits are used to identify and fix potential issues, such as broken links, missing meta tags, slow-loading pages. Nothing too complicated, and really just a glorified way to say “SEO Reviews”.</li></ol><p>Right, but I mentioned positive and negative impacts of headless CMS. Let’s cover those as well.</p><p>Like I said, it all depends on how you implement and manage your content delivery, so naturally potential negative impacts are:</p><ol><li><strong>Potential for Poor Implementation: </strong>SEO-friendly implementation is <strong>key</strong> for crawlable websites. That means no heavy JavaScript for rendering content — it’ll just hinder search engines to crawl and index your site’s content effectively. And we don’t want that.</li><li><strong>Increased Complexity: </strong>With great power comes great responsibility. All jokes aside though, the flexibility and control you get from headless CMSs adds a complexity that required a solid understanding of both development and SEO best practices. If you’re lacking this, it means your site isn’t fully optimized for search engines, a.k.a your site gets a shitty SEO score.</li><li><strong>Lack of Built-in SEO Features: </strong>Traditional CMS platforms often come with built-in SEO tools and plugins that automatically handle basic SEO needs. With a headless CMS, you’re gonna need to implement these features manually, increasing the risk of overlooking important SEO factors; like meta tags.</li></ol><h4>Why Even Choose a Headless CMS Then?</h4><p>Because it’s just um-mah-zing. ✨ Ok, ok, ok. I’ll lay it out for you:</p><ol><li><strong>Speed and Performance:</strong> Headless CMS solutions often lead to faster websites because they allow for more streamlined, efficient loading of content and assets. And faster site speed equals higher SEO-ranking. Not to mention how it improves user experience which potentially leads to even higher search rankings. <em>I mean, sweet!</em></li><li><strong>Flexibility in SEO Optimization:</strong> With headless CMS we get more control over the HTML output. <em>But how is that cool?</em> Because it allows for precise optimization of elements without the constraints of traditional CMS templates. Such as meta tags, structured data, and other SEO-relevant HTML-elements.</li><li><strong>Better Control Over URL Structures:</strong> Headless CMS platforms don’t impose URL structures. Y<em>ou know what this means, right ? </em>We get clean and logical URL-structures! It benefits both user navigation and SEO.</li><li><strong>Improved Mobile Experience:</strong> Because of the API-driven nature of headless CMS platforms, it’s easier to create responsive or mobile-specific versions of your content. Which is coolio as Google has their mobile-first indexing policies.</li></ol><p>If that wasn’t a mouthful…! 😮‍💨</p><p>Stick around for PART II (coming soon), where we’ll look at <strong>how to implement Sanity with Next.js</strong> (for dummies). ⭐️</p><p>—</p><p>Loving my content? Support me by buying me a cup of coffee! (Click the image-link down below 👇).</p><figure><a href="https://www.buymeacoffee.com/christinarpq"><img alt="" src="https://cdn-images-1.medium.com/max/213/1*d9x_0o-P98K_iNuun6MYvw.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc6107311974" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ja, så var man permittert da]]></title>
            <link>https://medium.com/@christinaroise/ja-s%C3%A5-var-man-permittert-da-87202385dc3f?source=rss-6306c46422b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/87202385dc3f</guid>
            <dc:creator><![CDATA[Christina Roise]]></dc:creator>
            <pubDate>Wed, 13 Mar 2024 09:12:02 GMT</pubDate>
            <atom:updated>2024-03-14T05:38:36.623Z</atom:updated>
            <content:encoded><![CDATA[<h4>Men hva gjør man, når man blir permittert fra drømmejobben og følelsene kjører berg-og-dal bane, og alle bare forstår, forstår, FORSTÅR…?!</h4><blockquote>“Vi ser lite aktivitet på salgssiden.”<br>“Markedet har definert seniorer som de med 10+ års erfaring.”</blockquote><p>“Sucks to be us”, tenker jeg. Vi som enten har under 10 års erfaring eller er nyutdannet. Da føles det som om noen sier: “Sorry as, du er ikke god nok”. Jeg tror ikke det er ment sånn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mLEzaT2VCc_2_45S2Na4_g.gif" /></figure><p>Forskjellen på oss <a href="https://www.variant.no/">Variant</a>-permitterte og permitterte fra ‘et-hvilket-som-helst-annet-selskap’ er Variants kjerneverdier, og da spesielt åpenhet. Vi ble fortalt i god tid at det trolig gikk denne retningen; om ikke noe endret seg, om vi ikke var heldige i å lande gode salg, om ikke etterspørselen på konsulenter steg. Kanskje åpenheten var med på å forberede oss. Eller kanskje det ikke hadde noen innvirkning. Jeg vet ikke riktig, for jeg har aldri opplevd det motsatte, men jeg er takknemlig for at <a href="https://blog.variant.no/permittering-i-variant-96c16681787f">ledelsen har vært</a>, og fortsetter å være, så åpne.</p><p>Men så kan man undre seg litt over begrepet og verdien ‘åpenhet’. Ja, hva ligger egentlig i det? Er det en to-veis-greie, eller holder det at kun ledelsen er åpne?</p><p>Som permitterte kunne vi velge å surmule; fortsette praten i det skjulte, bak hemmelige og låste Slack-samtaler. Men hva er det godt for da? Annet enn å brødfø misnøyen over livet og lede oss selv på en vei mot bitterhet og forakt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*apj3QKb5kwGyMaF00-b_pg.jpeg" /><figcaption>Utdrag fra samtaler mellom permitterte</figcaption></figure><p>Så gjorde vi ikke det da, altså; satt bak lukkede Slack-samtaler og surmulte, for flere ønsket å vise samme type åpenhet til ledelsen som vi ble gitt. For åpenhet er visst en sånn ‘det skal to til for å danse en tango’.</p><p>Men åpenhet er ikke ensbetydende med ufiltrert. Og tankene, samtalene og følelsene våre var nettopp det: ufiltrert. Slett ikke passende for en konstruktiv samtale om veien videre. For ufiltrert, i denne sammenheng, ville vært ensbetydende med følelsesladde samtaler og en gruppe gråtkvalte mennesker som desperat roper: “men dere svikter oss”. For hva hjelper vel det?</p><p>Det gjør vondt verre.</p><p>Istedenfor tok vi ‘ei lita drodling’ i FigJam (vi er IT-konsulenter, tross permittering og alt).</p><p>Møtet og strukturen var ikke noe hokus-pokus, men enkel og tok form sånn underveis. Vi startet med å drodle ned alle følelsene vi satt med. Det var gode følelser, vonde følelser, dritt, møkk og blomster. Poenget er at disse følelsene ga oss et godt utgangspunkt i å utforske <em>hvorfor</em>. Hvorfor sitter vi med akkurat <em>denne</em> følelsen? Hvorfor sitter noen av oss med <em>denne</em> følelsen og andre ikke?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SxPnxpgIa0cyG4-ytP084Q.png" /><figcaption>Illustrasjon av felles workshop</figcaption></figure><p>Og så tok vi det ett skritt videre og så på <em>hvordan </em>og <em>hva</em>. Hva skal til for at vi ikke sitter med akkurat <em>disse</em> følelsene? Hvordan kan ledelsen være til hjelp? Kan vi selv være til hjelp — hvordan?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DSZPXLhVZYwnkMCFweDGjw.png" /><figcaption>Eksempel på e-post</figcaption></figure><p>Det resulterte i en e-post til ledelsen og et fellesmøte om innholdet noen dager senere.</p><p>Om det hjalp eller ikke vet jeg ikke riktig. Men der og da, under fellesmøtet, opplevde jeg å bli sett og hørt, samtidig som at jeg <em>så</em> ledelsen. Ja, for shit-au-peppersmør, de har følelser de og visst. Det skapte på en måte en tryggere relasjon med ledelsen, for meg personlig i alle fall. For jeg så hvilken smerte ledelsen satt med og hvor vanskelig denne avgjørelsen var for dem. Og da var vi på en måte sammen om det — sammen om dritten. Kanskje ikke den samme dritten, men sammen likevel.</p><p>🫶</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87202385dc3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create a Reusable Custom RadioButton in React with Typescript]]></title>
            <link>https://medium.com/@christinaroise/how-to-create-a-reusable-custom-radiobutton-in-react-with-typescript-3ae7fc704e09?source=rss-6306c46422b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ae7fc704e09</guid>
            <category><![CDATA[styled-components]]></category>
            <category><![CDATA[accessible-design]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[accessibility]]></category>
            <category><![CDATA[typescript-with-react]]></category>
            <dc:creator><![CDATA[Christina Roise]]></dc:creator>
            <pubDate>Wed, 27 Apr 2022 07:48:50 GMT</pubDate>
            <atom:updated>2024-01-18T13:55:16.870Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Create a Reusable Custom Radio Button in React with Typescript</h3><h4>Without falling short on accessibility, let’s design and write a custom styled, reusable radio button in React with Typescript and StyledComponents.</h4><h4>Table of contents:</h4><ol><li><a href="#1fa1">What is a radio button?</a> 🕵🏻‍♀️</li><li><a href="#d4c4">When to use radio buttons</a> ⌚️</li><li><a href="#deee">Guidelines for designing radio buttons</a> 🦮</li><li><a href="#793d">Design it (tutorial)</a> 👨🏼‍🎨</li><li><a href="#7819">Code it (tutorial)</a> 👩🏽‍💻</li></ol><p>Radio buttons are a classic UI component meant for easy selection and decision-making. We all know them. We’ve all interacted with them. But every so often we come across radio buttons with terrible usability. However, we can’t put the blame solely on designers nor developers alone — it takes two to tango. 💃🕺</p><p>So, before we get started, let’s first review our lovable radio button; its purpose, when to use it, and the guidelines we need to follow.</p><h4>Prerequisite:</h4><p>A react-app repository with <strong>Typescript</strong>, and <strong>StyledComponents.</strong></p><p>TL;DR: checkout the <a href="https://codesandbox.io/s/custom-radio-button-group-cu5f4l?file=/src/components/inputs/RadioButtonGroup.tsx">tutorial repo in Sandbox</a>.</p><h3>What is a radio button? 🕵🏻‍♀️</h3><p>Well, it’s a selection control element, that allows our user to select one option from a list of options — opposite from checkboxes that instead allows a user to select multiple options. It’s represented as a small circle with a solid dot inside it when selected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*IOtQtUdLLZmRneB2q_USPA.gif" /><figcaption>GIF showing a radio button’s different states: unchecked, hover, checked, and focus or active.</figcaption></figure><h3>When to use radio buttons ⌚️</h3><p>Radio buttons are more commonly used in forms, settings, or in surveys. More specifically, we use radio buttons in lists where two or more options are available, when the options have to be visible at the same time, and when it’s only possible to select one option.</p><p>Because radio buttons aren’t our only selection control tool, we need to make sure we’re choosing the right time to use radio buttons. Let’s go over a few rules:</p><h4>Radio buttons vs. dropdown lists</h4><p>It all comes down to the amount of options in a list, when making the decision on radio button vs dropdown. A good rule of thumb is to use a list of radio buttons if there are <strong>5 or less options. I</strong>f not, use a dropdown list. However, dropdown lists do require more from our users, both in terms of clicks and cognitive effort, so it’s good to try and simplify as much as possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bbQ3JskYwsn7JDHgNCbe_g.png" /></figure><h4>Radio buttons vs. checkboxes</h4><p>As mentioned above, checkboxes allows our user to select multiple options, compared to our single-selection radio buttons. It’s also important to note that while our user <strong>have</strong> to select one option in a list of radio buttons, they are free to select one, two or zero options in a list of checkboxes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NVgvQ7Ci07ygb-huL07DNg.png" /></figure><h3>Guidelines for designing radio buttons 🦮</h3><h4>1. Ensure good usability</h4><p>Most of the responsibility falls on a developer when it comes to a radio button’s usability, but there are things to take into account for designers as well. The number one rule, is that the radio button alone shouldn’t be the only clickable area and that we need to make sure our users can click anywhere between the actual button and the label — this is especially important for mobile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MQZt90SE6bLGC7mRljhEqA.png" /></figure><h4>2. Readability is crucial</h4><p>To ensure good readability we need to make sure we’re not overwhelming our users with visual clutter. We can do so by putting together a logical layout for our radio button list: a vertical list. Vertical lists are more common and it’s easier to identify each line as one option. With horizontal lists, on the other hand, it’s easy to get confused by which label belongs to which button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YVx53Lim_NdbtCCKoWDViQ.png" /></figure><p>Aside from layout, we need to be consistent with our labels and make sure they’re short and to the point. The longer a label is, the more time and effort our users will need in order to grasp the list as a whole.</p><h4>3. Radio buttons are for selection only</h4><p>This goes out to developers as well: radio buttons are only meant for selecting an option, or value, <strong>never</strong> to perform an action. For example: when changing the date format settings on an app, our user has to first make the selection they want, before clicking a command button for those changes to be applied — the change should not take effect until the button has been clicked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YzmycSZncMPhInep1EEbYg.png" /></figure><p>If you’re in need of an action after an interaction with an on/off-element, say to control a dark mode feature, you’d might want to replace it with a custom switch element.</p><h4>4. Always define a default selection</h4><p>To lessen the amount of actions needed from users, adding pre-selected values is a must. It allows our users to revert back to the original values in a form, so they can start over if needed. Which again results in less time and effort spent filling out something as boring as forms.</p><h3>Design it (tutorial) 👨🏼‍🎨</h3><p>We’ve covered the guidelines when designing a radio button, but it’s important to note that a radio button’s many states should be defined before the design hits development. A hot tip: look at the native radio button component and use that as a base when designing your custom radio button — you’ll be doing your users and developers a huge favor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*lSqiopr8T-xW_y8O18z1ig.png" /></figure><p>Traditionally, you’ll find the label on the button’s right hand side. To ensure readability, we’ll stick to that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*Y_A4ha-JKvK4NqCYwDPkhQ.png" /></figure><p>Lastly, we’ll add our brand colors:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*zgaUOvFdd6zimFwo8NmN3w.png" /><figcaption>#4C3470, #7B6798, #CBC3DC, #F5C25C</figcaption></figure><p>And here’s the result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Tng5J4jhBXiRn9bn-ZQ3w.png" /></figure><p>In addition to a not-allowed cursor and faded colors, we’ll add a closed locker icon to further emphasize it’s disabled state. This is an added benefit for people who are color blind.</p><h3>Code it (tutorial) 👩🏽‍💻</h3><p>First we need to create our file:</p><pre>src/components/inputs/RadioButton.tsx</pre><p>and add the HTML markup of our component, we’ll fill it with mock data for now:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a0c4f74a8454b5ca18cd0d6724776f9/href">https://medium.com/media/8a0c4f74a8454b5ca18cd0d6724776f9/href</a></iframe><p>Now we need to connect the input and label-tag for assistive technologies to be able to identify the relationship between the two elements. We do this by adding an id to the input-tag and using the same id for htmlFor in the label-tag.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e5c9de92b394d9b1de646431122d9682/href">https://medium.com/media/e5c9de92b394d9b1de646431122d9682/href</a></iframe><h4>Add styling 👗✨</h4><p>Now that we’ve set up the basics, we can start adding the custom styling to our radio button.</p><p>Let’s first add our brand colors to a global file for all our color values:</p><pre>src/styled-components/GlobalStyles.ts</pre><p>For this we’ll use an enum, or css variables (whatever rocks your boat):</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ea6ebf307dc92e80695953540f453e14/href">https://medium.com/media/ea6ebf307dc92e80695953540f453e14/href</a></iframe><p>Now we can move on to styling our radio button, we’ll start with our label:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a2f8df6be34b214ee39147acfff21b6c/href">https://medium.com/media/a2f8df6be34b214ee39147acfff21b6c/href</a></iframe><p>We’ll use that StyledLabel as the label component to our radio button:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8b8963c7ddbde3e701ca005b527522e1/href">https://medium.com/media/8b8963c7ddbde3e701ca005b527522e1/href</a></iframe><p>Before we continue, let us add styling to the div wrapping the two elements to match the design.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/334bbfca91f272b2f013ef1aebe81506/href">https://medium.com/media/334bbfca91f272b2f013ef1aebe81506/href</a></iframe><p>Now comes the fun part: customizing our native radio button!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/43fe6bed7839eefe1cce4ffcf53e3011/href">https://medium.com/media/43fe6bed7839eefe1cce4ffcf53e3011/href</a></iframe><p>What we’ve done here is to visually remove the native styling to our radio button, by adding appearance: none. The element is still clickable and in our DOM — we just can’t see it. The border and border-radius values are giving us the outer circle to the radio button, while ::after gives us a pseudo-element that we can style as the inner dot. For the dot to be visible we need to add an empty string to content and define hight and width.</p><p>It’s time to add hover, focus, and checked styling:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cb6008073ae6f9f649c69f6e5fed8365/href">https://medium.com/media/cb6008073ae6f9f649c69f6e5fed8365/href</a></iframe><p>Though a disabled radio button is an edge case, we’ll add it to our component — just in case:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/83a6fe5c8f8b85e02a650789a00770f8/href">https://medium.com/media/83a6fe5c8f8b85e02a650789a00770f8/href</a></iframe><p>And at last, replace the input in our radio button component with our new styled input component:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a1b7adfc7e26d1187dc1448ede35ea38/href">https://medium.com/media/a1b7adfc7e26d1187dc1448ede35ea38/href</a></iframe><p>Our component should now look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*IOtQtUdLLZmRneB2q_USPA.gif" /><figcaption>GIF showing a radio button’s different states: unchecked, hover, checked, and focus or active.</figcaption></figure><h4>Make it reusable ♻️</h4><p>Now that we’ve got our style down, we can create a new file for our interface as this interface could be used by other input components:</p><pre>src/components/inputs/InputInterface.ts</pre><p>Let’s also type out the first props we need for our component. We’ll set most of these to required.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc3b9ceba1a7c9badec1e8b1a62e450d/href">https://medium.com/media/bc3b9ceba1a7c9badec1e8b1a62e450d/href</a></iframe><p>Connect it to our component and give them an initial state:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0239a94e7e41ac7952cb639f8c4f7624/href">https://medium.com/media/0239a94e7e41ac7952cb639f8c4f7624/href</a></iframe><p>Congrats, we’ve created a reusable radio button! 🎉✨</p><h4>Make a reusable radio button group 🏘 ♻️</h4><p>Radio buttons rarely come alone, which is why we’ll most likely be using a radio button group in our forms. We’ll have to use our radio button component to create the actual group component we’ll be needing. Let’s start by creating the component file:</p><pre>src/components/inputs/RadioButtonGroup.ts</pre><p>We’ll also need to add a new interface. Since this interface could potentially be used with grouped input types, we’ll add it to InputInterface.ts.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9818858e529282a4cce26fa1fb2fda38/href">https://medium.com/media/9818858e529282a4cce26fa1fb2fda38/href</a></iframe><p>Now we can set up the skeleton of our group before styling it. This time we’ll wrap it in a fieldset and use the legend-tag as a label.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5fcd08d1352042e55976ed60af06e26e/href">https://medium.com/media/5fcd08d1352042e55976ed60af06e26e/href</a></iframe><p>For consistency, we’ll create a new styled-component to style our legend-tag the same as our label-tag:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/97a75b57672d227eb468d78b4c4bdb80/href">https://medium.com/media/97a75b57672d227eb468d78b4c4bdb80/href</a></iframe><p>And add it to our group component. What’s nice about fieldset and legend is that there’s no need for an aria-labelledby or role as it comes built-in.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0b5ab47ba69d133dd9979855b4310286/href">https://medium.com/media/0b5ab47ba69d133dd9979855b4310286/href</a></iframe><p>Now that we’ve added our interface to our component we can set up a function to render our options. We want to create this ourside of the RadioButtonGroup component to prevent it from getting rendered unnecessary :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0536458323c2e66608cc146b905114f1/href">https://medium.com/media/0536458323c2e66608cc146b905114f1/href</a></iframe><p>The name-attribute is what connects our radio buttons as a group. Do NOT forget this as it is what makes a radio group a group. We’re also setting the first element in our option list to be checked by default.</p><h4>Add extra styling 💅🏼</h4><p>We can now add styling to the fieldset and the div wrapping our radio buttons:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2260448f7ccf7a7e712a59f21fa9d9bc/href">https://medium.com/media/2260448f7ccf7a7e712a59f21fa9d9bc/href</a></iframe><p>Cool! That should be it. Now we can move on the our final step:</p><h4>Let’s put it to use 💪🏼</h4><p>So in our parent component (we’ll just use Layout() for this example), we’ll add our new radio group component with a touch of some functionality to set selected value:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c58de9a7a66d7df2a82abd32941380fd/href">https://medium.com/media/c58de9a7a66d7df2a82abd32941380fd/href</a></iframe><p>Note that:</p><ol><li>Because we know the first option in a radio group is set to “checked” by default we’ll have to pass the first element in our option list to our selectedValue state.</li><li>Our radioGroupHandler only set’s the new state. Any additional functionality should be done on a submit button.</li></ol><p>Also: Don’t forget to <strong>test</strong> it with assistive tech! 🦮 🥳</p><p><strong>And here’s the final result:</strong></p><figure><img alt="A screen-recording of a radio group, with a label “Select your drink” and the two options: “Coffee” and “Tea”. The first option, “Coffee” is selected by default. The mouse hovers over and clicks on “Tea” to show the hover, active, selected and focus styling. The mouse then hovers over and clicks on “Coffee”. The recording continues in a loop." src="https://cdn-images-1.medium.com/max/404/1*7iSRYbevkoMiYo-WFlUTcw.gif" /><figcaption>A radio group for selection of drinks</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ae7fc704e09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Basic Introduction to Apple’s VoiceOver]]></title>
            <link>https://medium.com/@christinaroise/a-basic-introduction-to-apples-voiceover-4d65ebc9e27c?source=rss-6306c46422b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d65ebc9e27c</guid>
            <category><![CDATA[manual-testing]]></category>
            <category><![CDATA[accessibility-testing]]></category>
            <category><![CDATA[voiceovers]]></category>
            <category><![CDATA[accessibility]]></category>
            <category><![CDATA[assistive-technology]]></category>
            <dc:creator><![CDATA[Christina Roise]]></dc:creator>
            <pubDate>Thu, 21 Apr 2022 07:44:32 GMT</pubDate>
            <atom:updated>2022-04-22T10:31:18.270Z</atom:updated>
            <content:encoded><![CDATA[<h3>An Introduction to Apple’s VoiceOver</h3><p>Rarely do we developers test our work with assistive technologies such as screen readers or voice commands. We could argue it’s because we rely too heavily on our automated tests and a11y-testing tools, forgetting the fact that we can never replace manual testing… Though let’s be honest, it’s because we’re lazy. Perhaps we complicate it, thinking: “it’s too difficult to get started on” or “the process is time consuming.” And so we push it to next week, or the week after that, or the week after the week after next, until we’ve forgotten all about the importance of manual testing. Truth is, VoiceOver is actually quite simple.</p><p>I’ve put together an introduction, and since I’m a Mac-user, we’ll be using VoiceOver today.</p><p><strong>What we’ll cover in this article:</strong></p><ul><li>Who uses VoiceOver?</li><li>Setting up VoiceOver</li><li>How to use VoiceOver</li><li>Tips on how to test tickets in product review</li></ul><h3>Who Uses VoiceOver?</h3><p>It’s important to note that <a href="https://webaim.org/projects/screenreadersurvey9/">only a fraction of users who rely on screen readers to access digital information uses VoiceOver</a>. The majority uses JAWS or NAVDA, both only compatible with Windows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p97co3D-5J016r0XkR9J1w.png" /><figcaption>Screen Reader User Survey #9 Primary Screen Reader Results</figcaption></figure><p>Nevertheless, it’s always of value to take a look at the diversity of our users, regardless of their age, gender, occupation, status, or abilities. I recommend spending 2 minutes to watch Victor Tsaran, Senior Technical Program Manager at Google, talk about the diversity of users:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLdVlbO7_hz8%3Fstart%3D128%26feature%3Doembed%26start%3D128&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLdVlbO7_hz8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLdVlbO7_hz8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/815e622624c7132ee7ce86fddede50f2/href">https://medium.com/media/815e622624c7132ee7ce86fddede50f2/href</a></iframe><h3>Setting up VoiceOver</h3><p>Although Apple’s VoiceOver might not be the most powerful screen reader, it still provides a perfect gateway into testing with assistive technologies, as well as giving us a glimpse of the user experience.</p><p>VoiceOver also comes built-in with any iOS-device, so there’s no installing needed to get started.</p><h4>EnableVoiceOver</h4><p>There are two ways to enable VoiceOver, if this is your first time I suggest we take the long way, if not, the shortcut of enabling VoiceOver is<strong> Command+F5</strong>.</p><p>1. Go to <strong>System Preferences</strong> and click <strong>Accessibility</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*To849CCrDU4g3r4RjynIIw.png" /></figure><p>2. Click <strong>VoiceOver</strong> in the left side menu</p><p>3. If it’s your first time, we can <strong>Open VoiceOver Training</strong>. Go through the tutorial and practice VoiceOver controls as instructed<br>Note: <strong>VO key = Option + Command</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K4R71-qT7Sn6MMCjATYfiQ.png" /></figure><p>4. If this is not your first time, we can <strong>Enable VoiceOver</strong>, or press <strong>Command + F5</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hA5in6PPtQDcoFXNreL6uA.png" /></figure><h4>Change the VoiceOver voice</h4><p>If you wish to change the voice of your VoiceOver, you can change it up by:</p><p>1. Click <strong>Spoken Content</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bqetiEF5fjuLzTfR2lg3Lg.png" /></figure><p>2. Click the <strong>dropdown</strong> next to <strong>System Voice</strong> and choose a voice. Click <strong>Play</strong> if you wish to hear an example. Adjust <strong>Speaking Rate</strong> and <strong>Volume</strong> as needed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fo72qi6k2_0SkDgJfvj0QA.png" /></figure><h4>VoiceOver Utility</h4><p>The VoiceOver Utility is where you can customize and control certain aspects of VoiceOver, like the greetings when turning on your machine or adjust navigations. We won’t cover the utilities in this article, but it’s good to know where you can find it. And feel free to explore it on your own as well.<br>How to open the VoiceOver Utilities:</p><p>1. Click Open VoiceOver Utilities</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YTVgE0_kYAi_8_DyWeMX3Q.png" /></figure><h4>Enable Descriptions</h4><p>If you wish to enable the descriptions on visual elements such as images you can do so by:</p><p>1. Clicking <strong>Descriptions</strong> and <strong>Play audio descriptions when available</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ATEThW3GujwDSeQpQhY--A.png" /></figure><h3>How to use VoiceOver</h3><p>Now that we’ve covered the settings of VoiceOver, we can start our practice run, though I highly recommend going through Apple’s own “VoiceOver training”.</p><p>Note that the <strong>VO-key</strong> is the <strong>Control + Option</strong> keys.</p><ul><li><strong>Turn on VoiceOver and open Chrome.</strong><br>Hit the keys <strong>Fn + Command + F5</strong> to enable VoiceOver and navigate to the Docks by hitting <strong>VO + D</strong>. Open Chrome by hitting <strong>VO + Space</strong>.</li><li><strong>Google “Cats in Australia”</strong><br>For this practice run, we’ll be looking for information on cats. If you don’t automatically land on the search bar you can navigate through the web spots by hitting <strong>VO + Command + N</strong> or <strong>VO + Command + Shift + N</strong> if you went too far. You can also use <strong>VO + Arrow Left </strong>or<strong> Right</strong> key to navigate to and back.<br>Type “cats” in the search bar and hit <strong>Enter</strong>.</li><li><strong>Let’s look for anything on “Feral cats”<br></strong>Now that we’ve gotten a search result we can look for a link that will give us more information on feral cats. We could do so by either going through each element in our search result by using the <strong>VO+Arrow</strong> keys, or we can do a short cut and <strong>open the rotor menu</strong> by hitting <strong>VO+U</strong>.<br><br>If the rotor menu does automatically open the overview of the links, we can use the <strong>Arrow Left </strong>or <strong>Right</strong> keys until we’ve found the links-section. Use the <strong>Arrow Up </strong>or<strong> Down</strong> to browse the links. Remember we’re looking for information on feral cats this time.</li><li><strong>Find the right link and navigate to a new page</strong><br>Once you find the link you’re looking for in the rotor menu, hit <strong>Enter</strong>. This should take you to the link in the search result. If this is the right link you can open it by hitting <strong>VO + Space</strong>.</li></ul><h4>VoiceOver navigation keys:</h4><ul><li><strong>Enable VO:</strong> Fn + Command + F5</li><li><strong>VO key: </strong>Control + Option</li><li><strong>To the Dock:</strong> VO + D</li><li><strong>To the menu bar:</strong> VO + M</li><li><strong>To the status menu bar:</strong> VO + M + M</li><li><strong>Open the Rotor menu:</strong> VO + U</li><li><strong>Navigate Auto Web Spots: </strong><br>VO + Command + N (next) <br>or VO + Command + Shift + N (prev)</li></ul><h3>Tips on how to test tickets in product review</h3><p>Testing with VoiceOver when not having a visual impairment can sometimes be tricky as it’s easy to “cheat”. That’s why I sometimes resort to a few important tricks:</p><ol><li><strong>Turn off or down the monitor light</strong></li><li><strong>Zoom out to 33%</strong></li></ol><p>This way, I’ve at least made it trickier for my eyes to read the content on the page instead of relying on VoiceOver.</p><p>When testing a ticket it’s important to:</p><ol><li>Test only what elements have been covered in the ticket, but remember to see it in the full context of the page. For example: does the button label say what it’s for, or do you need the rest of the content in order to understand what it does?</li><li>Ask yourself: “Does the element make sense on its own or do I need to navigate the content in order to understand it fully?”</li><li>Should it be in the rotor menu, and is it?</li><li>Does keyboard navigation work?</li><li>Determine if the ticket has passed VoiceOver-testing or if it needs improvements</li></ol><p><strong>Bonus:</strong> insight into how blind users experience the web.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FewCSjiZ7Cdo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DewCSjiZ7Cdo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FewCSjiZ7Cdo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f4b27602d8d7d0e4a8664617d9fadce0/href">https://medium.com/media/f4b27602d8d7d0e4a8664617d9fadce0/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d65ebc9e27c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Tech Industry — Where Discrimination is A-OK]]></title>
            <link>https://medium.com/@christinaroise/the-tech-industry-where-discrimination-is-a-ok-94483d18e11e?source=rss-6306c46422b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/94483d18e11e</guid>
            <category><![CDATA[inclusivity]]></category>
            <category><![CDATA[inclusive-design]]></category>
            <category><![CDATA[accessible-design]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[accessibility]]></category>
            <dc:creator><![CDATA[Christina Roise]]></dc:creator>
            <pubDate>Fri, 08 Apr 2022 11:49:59 GMT</pubDate>
            <atom:updated>2022-04-19T08:19:54.467Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Tech Industry — Where Discrimination is A-OK</h3><h4>Why discrimination in product development goes by “unnoticed”, and why a lack of knowledge and empathy is a potential root cause.</h4><p>After a few years as a developer in the tech industry, I’ve noticed a recurring <a href="https://www.merriam-webster.com/dictionary/unculture">unculture</a> in terms of how we develop digital products and the lack of values we uphold. Too often, I’m a witness to statements such as: “disabled people don’t use our product,” “accessibility serves us little value — it leaves us with zero income alone”, and my favorite: “disabled-users are not a part of our <strong>target</strong> group”. At best, these show a lack of awareness, and at worst, a lack of empathy and consideration for our users.</p><p>Why is it that we get so focused on our target group that we <strong>knowingly</strong> shut out large groups of people from getting access to our products? Essentially, we’ve become Gretchen Wieners, shouting: “You can’t sit with us!” And when doing so, we are letting every person who doesn’t fit into our group, know they are different, insignificant, and should not be included. <em>Sidenote: Regina, on the other hand, totally deserved that clapback.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*HC4VVPdd-2EXAbKyRHAgDA.gif" /><figcaption>Lacey Chabert as Gretchen Wieners in Mean Girls</figcaption></figure><p>But how can tech work on <a href="https://www.google.com/search?q=inclusivity&amp;sxsrf=APq-WBvVQByQ7n79ucQLBAerxr4OyIGjgQ%3A1649235107458&amp;source=hp&amp;ei=o1RNYoPDGKSTxc8PysaHsA8&amp;iflsig=AHkkrS4AAAAAYk1is5az0M4tGe6igE3iPI-noBpWzyjA&amp;ved=0ahUKEwjDoOnFh__2AhWkSfEDHUrjAfYQ4dUDCAc&amp;uact=5&amp;oq=inclusivity&amp;gs_lcp=Cgdnd3Mtd2l6EAMyCQgjECcQRhD5ATIFCAAQgAQyCggAEIAEEIcCEBQyCggAEIAEEIcCEBQyBQgAEIAEMgUIABCABDIFCAAQgAQyBQgAEIAEMgUIABCABDIFCAAQgARQAFgAYP4XaAJwAHgAgAFKiAFKkgEBMZgBAKABAqABAQ&amp;sclient=gws-wiz">inclusivity</a>? That’s a great question I’d love to answer. We can do so by getting better at</p><blockquote>providing equal access to opportunities and resources for people who might otherwise be excluded or marginalized, such as those having physical or mental disabilities or belonging to other minority groups. (Oxford Languages, Google)</blockquote><p>Pretty straight forward, no? Let’s dive a little further into it.</p><p><em>TL;DR — get better at inclusivity by gaining more knowledge.</em></p><h3>We can start by focusing on four main principles</h3><p>When making a digital product accessible, we can lean on <a href="https://www.w3.org/WAI/standards-guidelines/wcag/">Web Content Accessibility Guidelines (WCAG)</a>, which consist of documents guiding us how to make web content more accessible. More specifically, we can lean on <a href="https://www.w3.org/WAI/WCAG21/Understanding/intro#understanding-the-four-principles-of-accessibility">POUR</a>. It’s WCAG’s acronym for four high-level principles that describe functional accessibility and can be applied to most information technologies. So, for a product to be accessible, it has to be:</p><figure><img alt="A circle illustration of WCAGs POUR and how the four principles are tied together, where one follows the next." src="https://cdn-images-1.medium.com/max/1024/1*0OUUG-LL4SbsQpTBKf6Sbg.png" /><figcaption>Illustration borrowed from <a href="https://www.deque.com/blog/top-5-questions-asked-in-accessibility-trainings/">Deque University</a>.</figcaption></figure><ul><li><strong>Perceivable</strong> — anyone can distinguish content regardless of how they perceive it. The design should therefore adjust for user-specified perception settings. For example, in the Accessibility settings on iOS, a user can choose to enable bold and larger font. Or a user might want to switch from a computer, to a tablet, to a phone.</li><li><strong>Operable</strong> — responsive to user interactions, including assistive technologies like screen readers or voice commands. So a clean user interface should minimize the number of interactions it takes to accomplish a task. Navigation paradigms on a website, for instance, should be obvious and reduce the number of clicks needed to get to any particular web page.</li><li><strong>Understandable</strong> —has clear instructions and messaging to help users find information and navigate. A great example involves the use of forms. Errors in forms should be indicated by more than just color. It should have help texts and icons indicating the state.</li><li><strong>Robust</strong> — flexible and adapts to a variety of mediums and input methods. User interface elements should be made compatible with assistive tech, including detailed image alt tags. Assistive tech reads or describes elements of the screen to the user, and also allows for the user to interact with these elements, but only IF the elements are compatible.</li></ul><h3><strong>Accessibility isn’t the opposite of Disability</strong></h3><p>There’s quite the focus on assistive tech and disabilities when going through WCAG and POUR so how can it also be a benefit for people without a disability? To answer that, we need to really look at the meaning of accessibility. For too long accessibility has been synonymous with disability because we fail to look at disability past medical definitions of what it means to be able or disable.</p><p>We can blame this on the <a href="https://martyncooper.wordpress.com/2012/10/10/models-of-disability-and-accessibility/">Medical Model of Disability</a> where a disability is viewed as a <strong>medically-diagnosed biological problem</strong> due to genetic disorders, disease, trauma, or other health conditions. In other words, it is, by nature, your own fault that you’re unable to access digital information. This is the model which is most commonly known.</p><p>With this model in mind, we tend to think of ability as something equal to a perfect health condition. Let me be the one to tell you; being able-bodied is so much more than our biology.</p><p>The <a href="https://martyncooper.wordpress.com/2012/10/10/models-of-disability-and-accessibility/">Social Model of Disability</a> helps us in seeing past the biological limitations of our abilities, as it views a disability as a <strong>condition created by bad design</strong>. Basically society’s ecosystem institutes barriers for people. And in other words, it’s <strong>our</strong> fault for making crappy solutions.</p><p>Let’s look at an example to better understand:</p><p>Say we want to build a house, but we are a little short on money and space so we decide to remove the stairs and replace them with a rope. This will give us a lot more space for our furniture, it’ll take less time to install, and a bonus: it’s good for our health — we can get in at least a 20 minute workout by going up and down the floors. Great!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Kb6cl6L7dXEFeuKBABDLw.png" /></figure><p>But what happens when we are ready to move into our newly built house? How are we going to get our furniture up to the second floor? And what if I get pregnant and get all that extra weight? Or my mom, who is an elderly and has arthritis, is coming to spend the night?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-qPkrrEMPtypkVYXHaegWg.png" /></figure><p>Suddenly, our house is making our medically-abled bodies disabled because we are unable to access our second floor.</p><p>This is where the <a href="https://martyncooper.wordpress.com/2012/10/10/models-of-disability-and-accessibility/">Functional Model of Disability</a> comes in as it views a disability as <strong>a problem to be solved.</strong> Specifically, it seeks to overcome physical limitations with technology. Enter: Accessibility and Inclusivity.</p><p>The <em>World Wide Web (W3)</em> is in its essence a result of looking at a problem and trying to solve it. Originally it was created to make information accessible between scientists in universities and institutes around the world. But Tim Berners-Lee, the guy behind W3 and <em>Web Accessibility Initiative (WAI)</em>, has also been vocal about its inclusivity, by stating that:</p><blockquote>“The power of the web is in its universality. Access by everyone regardless of disability is an essential aspect.”</blockquote><p>— <a href="https://www.w3.org/Press/IPO-announce">Tim Berners-Lee, Oct 22 1997</a></p><p>So, if the Web was meant to be accessible by default, and accessibility is an inherent aspect of the Web, how come our focus lies elsewhere?</p><h3>Accessibility is more than just ethics</h3><p>There’s not just an ethical responsibility in play here, there’s also a legal responsibility. Alongside the attitude towards accessibility as something tedious, I’ve come across the surprised look when mentioning <a href="https://www.un.org/development/desa/disabilities/convention-on-the-rights-of-persons-with-disabilities.html">United Nations’ Convention on the Rights of Persons with Disabilities</a> — where access to information and communications technologies, including the Web, is defined as a <em>basic human right.</em></p><p>Countries each have their own system who upholds this law. The US has <a href="https://www.ada.gov/">ADA</a>, Norway has <a href="https://www.digdir.no/">Digdir</a>, and Australia <a href="https://www.legislation.gov.au/Details/C2016C00763">DDA</a>, each follows the <a href="https://www.w3.org/TR/WCAG21/">WCAG 2.1 Level AA Guidelines</a>. There are even businesses whose sole purpose is to audit other businesses’ websites in order to ensure they’re in accordance with web accessibility laws and to provide guidance in how to.</p><h3>If there’s a legal and ethical responsibility to uphold, how come we dont?</h3><p>Even with ethics and laws put in place, about <a href="https://blog.usablenet.com/97-of-top-websites-fail-wcag-2-test-new-study-finds#:~:text=A%20new%20study%20on%20Website,frustrating%20for%20the%20end%20user.">97% of the top 1 million websites around the world fail to meet even the basic web accessibility tests</a>, leaving them susceptible to lawsuits, financial liability, poor PR perception, and damage to branding.</p><p><em>If you’re interested, </em><a href="https://www.w3.org/WAI/policies/"><em>W3C has a great overview of the different laws and policies</em></a><em> sorted by country.</em></p><p>So again, what is it that prevents us from steering the way we work into a more user-empathic approach? I believe there are three main reasons that very much so go hand-in-hand:</p><p>1) There’s <strong>a lack of knowledge</strong> of what accessibility is. Maybe we lost it along the way or we failed to understand the importance of it. The majority of us still believe accessibility is only meant for <em>blind</em> people. Which is a shame. Because as we covered above, accessibility is for <em>all</em> people, and by making a product accessible we are actually providing a better user experience for all.</p><p>And, as an example, because we don’t think of accessibility for all, but only for people who are blind — we’re talking no vision here — we also forget the majority of people with a visual impairment — people who are colorblind, or use glasses, or are recovering from an eye surgery. That means we also forget to <strong>include</strong> them in both the design and development process. And that’s just one minority, and sometimes majority, of our user group.</p><p>2) There’s <strong>a lack of user empathy</strong>, not necessarily by choice, but very often by putting together a user group for testing that lacks diversity. This may be related to being too focused on the characteristics of our target group that we often miss its diversity. Think back to the house we built. We built that to fit <em>our</em> needs, but forgetting to think of guests coming to visit, or unforeseen circumstances. That’s essentially what we’re doing in tech as well.</p><p>Very often, when doing research and putting together a target group, we collect just the basic characteristics: age, gender, interests, occupation, location, family status.. But seldom do we look past what’s right in front of us. This prevents us from identifying our users abilities or lack thereof. So how can we solve user problems or create great user experiences if we lack the right amount of insight?</p><p>We can say that: a lack of user empathy is both the result and the cause of a lack of knowledge. Because we fail to see past medical disabilities and because we carry the belief that “those” users aren’t a part of our user group, we miss out on the chance to actually get to know our users leaving us with a limited user-empathy. And because we don’t know our users well enough, we fail to provide solutions to their problems when using our products.</p><p>3) And last, theres <strong>the belief that accessibility and inclusivity gives a low return on investment</strong>. There are a number of reasons why this belief stands so firmly in our culture, and of course it’s tied together with a lack of knowledge. Again we fail to recognize who’s able and who’s disabled. In reality <a href="https://blogs.lse.ac.uk/businessreview/2021/08/09/technology-promotes-inclusion-for-the-worlds-largest-minority-group-people-with-disabilities/">one in six people worldwide — over one billion people — have a disability</a>. So we are bound to have at least some type of disability in our user group<em>.</em></p><p>Accessibility and inclusivity does return investment but its “slow money”, meaning it might be difficult to pin point what sort of earnings are coming from where when turning a product accessible, and rarely does it happen over night. But what we do know is that:</p><ul><li><strong>it increases conversion rates</strong><br>For example, <a href="https://bighack.org/business-case-accessibility-6-companies-who-boosted-business-with-accessibility/?fbclid=IwAR3OmNegbxotK5UKCeaoDB0kf532HvSuSzOPJYS5Vbt4qDrQY8CV2EZ9ZaQ">Tesco managed to increase their revenue from online sales to £13 million annually</a>. Another example is the loss of potential revenue because of an unaccessible gateway to the end product, say a booking portal to a wedding revenue.</li><li><strong>it lowers maintenance costs</strong><br>For example, <a href="https://www.researchgate.net/publication/271657803_Universal_design_inclusive_design_accessible_design_design_for_all_different_concepts-one_goal_On_the_concept_of_accessibility-historical_methodological_and_philosophical_aspects">a case study conducted by the University of Twente</a>, saw that a website that has an accessible design was not only easier for people to use, it also reduced website maintenance costs by 66%(!).</li><li><strong>it gives a better SEO score</strong><br>For example, many <a href="https://bighack.org/business-case-accessibility-6-companies-who-boosted-business-with-accessibility/?fbclid=IwAR3OmNegbxotK5UKCeaoDB0kf532HvSuSzOPJYS5Vbt4qDrQY8CV2EZ9ZaQ">case studies</a> found an increase in organic search traffic and time spent on their websites after making their sites more accessible.</li><li><strong>it strengthens the user experience and the business brand<br></strong>For example, when the content is well-structured and organized, it’s often more intuitive and predictable , which helps users to navigate and perform important tasks. Great user experience results in happy customers, and happy customers means brand advocates!</li><li><strong>and it has a high social impact <br></strong>For example, by focusing on inclusivity and accessibility, our businesses have a higher change of becoming an inclusive and diverse workspace, we can provide new job opportunities for people who normally wouldn’t be able to take on certain responsibilities solely because of our technical tools, we get a good standing social reputation, and we get to influence other businesses to do the same.</li></ul><p><strong>To conclude</strong>, let’s <strong>expand our knowledge</strong> to get better at inclusivity and accessibility.</p><p><strong>Further readings:</strong></p><ul><li><a href="https://www.toptal.com/designers/user-research/ux-research-methods">UX Research Methods and the Path to User Empathy, by Micah Bowers</a></li><li><a href="https://hbr.org/2020/10/to-build-more-inclusive-technology-change-your-design-process">To Build More-Inclusive Technology, Change Your Design Process, by Felix Chang</a></li><li><a href="https://www.toptal.com/designers/ui/inclusive-design-infographic#:~:text=Inclusive%20design%20and%20accessible%20design,for%20people%20in%20diverse%20circumstances.">Accessible-Design vs. Inclusive-Design (with Infographic), by Cameron Chapman</a></li><li><a href="https://medium.com/@webpointhq/a-beginners-guide-to-inclusive-design-90ce663769aa">A Beginners Guide to Inclusive Design, by Webpoint</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94483d18e11e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>