Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: Rename the static text role to label #434

Merged
merged 1 commit into from
Jun 16, 2024
Merged

Conversation

mwcampbell
Copy link
Contributor

The term "static text" is archaic; it goes back to the early days of Windows and, if I remember correctly, the original Macintosh Toolbox. But every modern GUI toolkit I can think of, as far back as Java's AWT in the 90s, refers to this type of object as a label, whether or not it's actually labeling another control. To achieve our goal of making accessibility approachable to today's developers, we should eliminate unfamiliar and archaic terminology wherever we can. So, while this is another inconvenience for our early adopters, I think this name change is worthwhile.

Also, I now believe that the role that we used to call static text, that we now call label, should map to the AT-SPI label role, not the AT-SPI static role. This is based on what I see in both GTK 3 and 4, which use the label role whether or not the text actually has a label relationship with another widget.

@DataTriny DataTriny merged commit 7086bc0 into main Jun 16, 2024
10 checks passed
@DataTriny DataTriny deleted the rename-static-text branch June 16, 2024 18:14
@mwcampbell mwcampbell mentioned this pull request Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants