You are an accessibility expert. There is a webpage. On the header section of the webpage, we have the website logo. Whenever, user clicks on the logo via mouse or navigates it via keyboard and presses Enter, the user is taken to the website's welcome page. The aria-label provided for the logo is "Return to welcome page". The logo of the website is "Royal London". Here are my queries:
Is the aria-label correct? Client is asking whether this is OK since they are providing additional information that the image selected can be used to return to the landing page.
If the logo image contains the name of the website, should the logo exactly matches the aria-label?
Assistant
Is the aria-label correct?
The ARIA label "Return to welcome to page" is functionally descriptive and clearly communicates the purpose of the image link, especially for screen reader users. In this sense, it's a good practice because it describes the action that will be taken (returning to the welcome page) rather than just describing the image (which is often not particularly helpful in context). Accessibility guidelines generally emphasize the importance of functionality and context over visual depiction, especially for interactive elements. Therefore, your client's provided aria-label is appropriate and aligns well with accessibility best practices.
User
But this is violating the WCAG 2.5.3.
Assistant
WCAG 2.5.3 Label in Name (Level A) requires that for user interface components with labels that include text or images of text, the name contains the text that is presented visually. This principle supports better interaction for users who rely on speech input to operate websites and need to speak the visible text of a control to activate it, as well as those who benefit from visual consistency between a label and its accessible name. In situations where speech recognition software is used, or when users are visually checking consistency between a clickable item and its associated action, matching the visible text to the accessible name becomes important.
User
Microsoft excel query. If in a cell, we have bullet points and we want to segregate them into different cells, what is the easiest method to do so? For example: I am currently in cell A1 and it has following content:
some text
some text
some text
I want to separate the above text so that it looks like below:
A1: 1. some text
B1: 2. some text
C1: 3. some text
Assistant
To segregate bullet points from a single cell into multiple cells in Microsoft Excel, you can utilize the "Text to Columns" feature, which is ideally suited for this type of task. Here's how you can do it step-by-step:
Step-by-Step Procedure using Text to Columns
User
This will split the text column wise. I need it row wise.
Assistant
To distribute the text from a single cell into multiple rows instead of columns, you'll need a slightly different approach since Excel's "Text to columns" only works for splitting data across columns. You can use a formula-based approach to achieve this. Here’s how you can achieve it using a combination of Excel functions:
Should the logo's aria-label match the text within the logo image?
It is not necessary for the aria-label to exactly match the text of the logo itself ("Royal London"). The primary goal of the aria-label in this context is to describe the functionality of the link, rather than to describe the visual appearance of the logo. Having an aria-label that says "Return to welcome page" is more helpful to users relying on assistive technologies than simply repeating the company name, which they might not immediately correlate with navigation functionality. The aria-label should convey what clicking the logo will do (navigate to the welcome page), not just repeat the company name.
If there's a requirement or reason to make the brand name accessible from an SEO perspective or for clarity, you could alternatively use the alt text to include the company name, like this:
html
<a href="/" aria-label="Return to welcome page">
<img src="path/to/logo.png" alt="Royal London logo">
</titleLabel>
This way, the logo’s function and the company’s brand name are accessible separately: the aria-label communicates the function, and the alt attribute conveys the visual content.
In conclusion, the aria-label as provided ("Return to welcome page") effectively communicates the function of the element, which is optimal for accessibility. Supplementary information about the logo (like its exact name, "Royal London") could be provided via other means if necessary.
Given this requirement, if the "Royal London" logo serves as a button or link and "Return to welcome page" is used as its accessible name, there may be potential issues with WCAG 2.5.3 compliance, particularly for users employing speech recognition technologies who might try to activate the link by saying "Royal London" as that is the text they see, but the accessible label doesn't match.
Addressing Compliance
Here are steps to address compliance while maintaining functionality:
Adjust the aria-label: Consider including "Royal London" in the aria-label in addition to the instruction, such as "Royal London - Return to welcome page." This approach combines the visible text with the functionality description, serving both purposes:
html
<a href="/" aria-label="Royal Digital - Return to welcome page">
<img src="path/logo.png" alt="Royal London">
</a>
Leverage both the alt text and the aria-label effectively: If the visual appearance (text in the logo) is different from the function (navigate back to the homepage):
html
<a href="/" aria-label="Royal London - Return to welcome page">
<img src="path/logo.png" alt="Royal London logo">
</a>
Testing and Feedback: After making adjustments, test the website with various assistive technologies including screen readers and speech recognition software. Also, gather feedback from users with disabilities to ensure that the adjustments not only meet WCAG criteria but are also functional and accessible in practical use.
By using these strategies, you can provide clear and compliant navigation aids that accommodate diverse user needs and technologies, thereby improving overall website accessibility.
Select the cell you want to split:
In your case, select cell A1.
Go to the Data tab:
Click on "Data" in the Ribbon menu at the top of Excel.
Use Text to Columns:
With cell A1 selected, click on "Text to Columns" in the 'Data Tools' group.
Choose 'Delimited':
In the Wizard that appears, choose the “Delimited” option (since your text is separated by line breaks, which are treated as delimiters). Click "Next".
Set the Delimiters:
You won't typically find a line break listed among common delimiters. To use a line break as a delimiter, you need to input it manually:
In the Delimiters section, untick all the default options (like Tab, Semicolon, etc.)
Click in the "Other" checkbox, and then while it's selected, press Ctrl + J on your keyboard. This will insert a line break as a delimiter (you won't see it, but Excel recognizes it).
Click "Next".
Finish the setup:
Review any data formatting options if necessary. Typically, you can just leave the default settings.
Click "Finish".
This should effectively split your bullet points from cell A1 into cells A1, B1, C1, and so forth, depending on how many bullet points there are. Each part of the split will take a new cell in the same row, spread across consecutive columns.
Adjustments for Further Enhancement
If you experience any issues with additional spaces before or after your text after splitting, you can use Excel’s TRIM function to clean it up. Simply enter =TRIM(A1) in a new cell and copy the formula across other cells to remove extra spaces.
Always ensure you're working with a copy of your data or ensure you have backups when using Text to Columns because it overrides the original data in the cell.
This process provides a neat and swift way to segregate listed or bullet-pointed text in cells into individual cells across a row in Excel, making data more organized and easier to manage.
Step-by-step Procedure Using Formulas
Assuming the bullet points in cell A1:
The content in A1 is something like:
code
1. some text
2. some text
3. some text
Use a helper column to count the occurrences of bullet points:
You need to count the number of line breaks + 1 (as the number of items). Suppose you use column B for this helper function. In cell B1, put:
excel
=LEN(A1) - LEN(SUBSTITUTE(A1, CHAR(10), "")) + 1
Extract bullet points into separate rows:
Now, start filling down from A2 downwards (not A1 as it contains the original list). Use a formula to progressively extract each bullet point into a new row:
Drag this formula down the number of times corresponding to the number of bullet points you counted in B1.
Explanation:
LEN(A1) - LEN(SUBSTITUTE(A1, CHAR(10), "")) + 1 counts the number of bullet points. CHAR(10) represents a line break/return, so this part finds the number of line breaks and adds one since the last item doesn't end with a line break.
MID, SUBSTITUTE, and REPT function combo in the extraction formula splits the string by replacing line breaks with a very large number of spaces (REPT(" ", LEN(A$1))) and then using MID to grab each piece in turn. The TRI M function is used to clean up any leading or trailing whitespace.
Final Adjustment:
You may need to copy the resulting cells and use "Paste Values" if you want to remove the original formulas and keep only the data.
Adjust the range of the formulas and the dragging down part according to the actual count of items.
Since Excel doesn't natively provide a single function to split text into rows (as it does with columns via Text to Columns), this formula-based approach leverages string functions to manually parse and redistribute text across multiple rows, achieving the desired layout change from vertical to horizontal orientation.