Skip to content

feat: Add aria label to breadcrumb attributes - #6955

Merged
HazAT merged 2 commits into
masterfrom
feat/aria-label-breadcrumbs
Jan 30, 2023
Merged

HazAT merged 2 commits into
masterfrom
feat/aria-label-breadcrumbs

Conversation

@HazAT

@HazAT HazAT commented Jan 27, 2023

Copy link
Copy Markdown
Member

Fixes #3056

@github-actions

github-actions Bot commented Jan 27, 2023 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.84 KB (+0.05% 🔺)
@sentry/browser - ES5 CDN Bundle (minified) 61.5 KB (+0.03% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.51 KB (+0.06% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 54.8 KB (+0.03% 🔺)
@sentry/browser - Webpack (gzipped + minified) 20.23 KB (+0.04% 🔺)
@sentry/browser - Webpack (minified) 66.2 KB (+0.02% 🔺)
@sentry/react - Webpack (gzipped + minified) 20.26 KB (+0.05% 🔺)
@sentry/nextjs Client - Webpack (gzipped + minified) 47.55 KB (+0.03% 🔺)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 26.77 KB (+0.04% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 25.05 KB (+0.06% 🔺)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 43.69 KB (+0.03% 🔺)
@sentry/replay - Webpack (gzipped + minified) 38.46 KB (0%)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 61.02 KB (+0.02% 🔺)

Comment thread packages/utils/src/browser.ts Outdated
}
}
const allowedAttrs = ['type', 'name', 'title', 'alt'];
const allowedAttrs = ['aria-label', 'aria-labelledby', 'type', 'name', 'title', 'alt'];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think aria-labelledby refers to a different dom element, so would not be too helpful here? as that would be the ID of the element that has the label.

@HazAT

HazAT commented Jan 30, 2023

Copy link
Copy Markdown
Member Author

@mydea removed labelledby for now

@HazAT
HazAT merged commit b1419fa into master Jan 30, 2023
@HazAT
HazAT deleted the feat/aria-label-breadcrumbs branch January 30, 2023 08:15
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.

DOM Breadcrumbs: Capture aria-label as an attribute

3 participants