Open-source News

Create accessible websites with Drupal

opensource.com - Mon, 03/20/2023 - 15:00
Create accessible websites with Drupal neerajskydiver Mon, 03/20/2023 - 03:00

As the world becomes increasingly digital, it’s more important than ever to ensure that websites are accessible to everyone. Accessibility is about designing websites that can be used by people with disabilities, such as visual or hearing impairments, as well as those who rely on assistive technology like screen readers. In this article, I’ll explore recommendations for creating accessible websites with Drupal, a popular open source content management system.

Why accessibility is important

First, consider why accessibility is important. According to the World Health Organization, over 1 billion people worldwide live with some form of disability. In the United States alone, 26% of adults have some form of disability. Ensuring that websites are accessible is not only a moral imperative, it’s also a legal requirement. In the US, websites must comply with the Americans with Disabilities Act (ADA) and Section 508 of the Rehabilitation Act, which sets standards for accessibility in federal agencies.

4 tips for creating accessible websites with Drupal

Here are some tips for creating accessible websites with Drupal:

  1. Choose accessible themes and modules: When selecting themes and modules for your Drupal website, it’s important to choose those designed with accessibility in mind. The Drupal community has created a number of themes and modules that are specifically designed for accessibility. You can also use tools like the Web Accessibility Evaluation Tool (WAVE) to test the accessibility of themes and modules before you install them.
  2. Design for keyboard navigation: Many people with disabilities rely on keyboard navigation to access websites. To ensure that your Drupal website can be navigated using a keyboard, you should make sure that all interactive elements are reachable with a keyboard and that the order in which elements are accessed with the keyboard makes sense. You can use the Drupal Accessibility module to test your website’s keyboard navigation.
  3. Use ARIA attributes: Accessible Rich Internet Applications (ARIA) is a set of attributes that can be added to HTML elements to make them more accessible. ARIA attributes can be used to provide additional information to assistive technology, such as screen readers. For example, you can use ARIA attributes to describe the purpose of a button or a link. Drupal has built-in support for ARIA attributes.
  4. Test for accessibility compliance: To ensure that your Drupal website is accessible, test it for compliance with accessibility standards like the Web Content Accessibility Guidelines (WCAG). There are a number of tools available for testing accessibility compliance, such as Accessibility Insights for Web.

Our favorite resources about open source Git cheat sheet Advanced Linux commands cheat sheet Open source alternatives Free online course: RHEL technical overview Check out more cheat sheets Examples of accessible websites using Drupal

Several organizations have successfully implemented accessible websites using Drupal. Here are two of my favorite.

  1. University of Colorado Boulder: The University of Colorado Boulder used Drupal to redesign its website with accessibility in mind. They used Drupal’s built-in accessibility features, as well as custom modules, to ensure that their website is compliant with accessibility standards. As a result, they saw a significant increase in traffic and engagement from users with disabilities.

  2. Connecticut Children’s Medical Center: Connecticut Children’s Medical Center used Drupal to create an accessible website for patients and their families. They used Drupal’s built-in accessibility features, as well as custom modules, to provide features like keyboard navigation and ARIA attributes. The website has been praised for its accessibility and has won several awards.

Access for all

Creating accessible websites is essential for ensuring that everyone can access digital content. Drupal has a number of features and modules that can help make websites more accessible, including built-in accessibility features, themes and modules designed for accessibility, and support for ARIA attributes. By implementing these recommendations, you can create an accessible website that provides a better user experience for all users.

Use the open source Drupal CMS to create accessible websites that provide open access to everyone.

Accessibility Drupal What to read next This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License. Register or Login to post a comment.

Develop on Kubernetes with open source tools

opensource.com - Mon, 03/20/2023 - 15:00
Develop on Kubernetes with open source tools rberrelleza Mon, 03/20/2023 - 03:00

Over the last five years, a massive shift in how applications get deployed has occurred. It’s gone from self-hosted infrastructure to the world of the cloud and Kubernetes clusters. This change in deployment practices brought a lot of new things to the world of developers, including containers, cloud provider configuration, container orchestration, and more. There’s been a shift away from coding monoliths towards cloud-native applications consisting of multiple microservices.

While application deployment has advanced, the workflows and tooling for development have largely remained stagnant. They didn’t adapt completely or feel “native” to this brave new world of cloud-native applications. This can mean an unpleasant developer experience, involving a massive loss in developer productivity.

But there’s a better way. What if you could seamlessly integrate Kubernetes and unlimited cloud resources with your favorite local development tools?

The current state of cloud-native development

Imagine that you’re building a cloud-native application that includes a Postgres database in a managed application platform, a data set, and three different microservices.

Normally, this would involve the following steps:

  1. Open a ticket to get your IT team to provision a DB in your corporate AWS account.
  2. Go through documentation to find where to get a copy of last week’s DB dump from your staging environment (you are not using prod data in dev, right?)
  3. Figure out how to install and run service one on your local machine
  4. Figure out how to install and run service two on your local machine
  5. Figure out how to install and run service three on your local machine

And that’s just to get started. Once you’ve made your code changes, you then have to go through these steps to test them in a realistic environment:

  1. Create a Git branch
  2. Commit your changes
  3. Figure out a meaningful commit message
  4. Push your changes
  5. Wait your turn in the CI queue
  6. CI builds your artifacts
  7. CI deploys your application
  8. You finally validate your changes

I’ve worked with teams where this process takes anything from a few minutes to several hours. But as a developer, waiting even a few minutes to see whether my code works was a terrible experience. It was slow, frustrating, and made me dread making complex changes.

Simplify your cloud-native development workflow with Crossplane and Okteto

Crossplane is an open source project that connects your Kubernetes cluster to external, non-Kubernetes resources and allows platform teams to build a custom Kubernetes API to consume those resources. This enables you to do something like kubectl apply -f db.yaml to create a database in any cloud provider. And this enables your DevOps or IT team to give you access to cloud infra without having to create accounts, distribute passwords, or manually limit what you can or can’t do. It's self-service heaven.

The Okteto CLI is an open source tool that enables you to build, develop, and debug cloud native applications directly in any Kubernetes cluster. Instead of writing code, building, and then deploying in Kubernetes to see your changes, you simply run okteto up, and your code changes are synchronized in real time. At the same time, your application is hot-reloaded in the container. It’s a fast inner loop for cloud-native applications.

On their own, each of these tools is very useful, and I recommend you try them both. The Crossplane and Okteto projects enable you to build a great developer experience for you and your team, making building cloud-native applications easier, faster, and joyful.

Here’s the example I mentioned in the previous section, but instead of a traditional setup, imagine you’re using Crossplane and Okteto:

  1. You type okteto up
  2. Okteto deploys your services in Kubernetes while Crossplane provisions your database (and data!)
  3. Okteto synchronizes your code changes and enables hot-reloading in all your services

More on Kubernetes What is Kubernetes? Free online course: Containers, Kubernetes and Red Hat OpenShift technical over… Test drive OpenShift hands-on An introduction to enterprise Kubernetes How to explain Kubernetes in plain terms eBook: Running Kubernetes on your Raspberry Pi homelab Kubernetes cheat sheet eBook: A guide to Kubernetes for SREs and sysadmins Latest Kubernetes articles

At this point, you have a live environment in Kubernetes, just for you. You saved a ton of time by not having to go through IT, figuring out local dependencies, and remembering the commands needed to run each service. And because everything is defined as code, it means that everyone in your team can get their environment in exactly the same way. No degree in cloud infrastructure required.

But there’s one more thing. Every time you make a code change, Okteto automatically refreshes your services without requiring you to commit code. There’s no waiting for artifacts to build, no redeploying your application, or going through lengthy CI queues. You can write code, save the file, and see your changes running live in Kubernetes in less than a second.

How’s that for a fast cloud-native development experience?

Get into the cloud

If you’re building applications meant to run in Kubernetes, why are you not developing in Kubernetes?

Using Crossplane and Okteto together gives your team a fast cloud-native development workflow. By introducing Crossplane and Okteto into your team:

  • Everyone on your team can spin up a fully-configured environment by running a single command
  • Your cloud development environment spans Kubernetes-based workloads, as well as cloud services
  • Your team can share a single Kubernetes cluster instead of having to spin up one cluster on every developer machine, CI pipeline, and so on
  • Your development environment looks a lot like your production environment
  • You don’t have to train every developer on Kubernetes, containers, cloud providers, and so on.

Just type okteto up, and you’re developing within seconds!

Use Crossplane and Okteto for cloud-native development in a matter of seconds.

Kubernetes Cloud Containers SCaLE What to read next This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License. Register or Login to post a comment.

Linux 6.3-rc3 Released: It's "Fairly Big"

Phoronix - Mon, 03/20/2023 - 04:56
Linus Torvalds just released Linux 6.3-rc3 as the latest weekly test candidate for the in-development Linux 6.3 kernel that is slated to debut as stable toward the end of April...

Pages