Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
Hide Aria label with css or javascript

I want to hide an arialabel without modifying it so just adding some code in css or javascript. I know that you can put display:none for a class but is there any similar options for labels ?

Here's the aria label I want to hide. It doesn't have any ID

// aria-label="Sign-up" href="/EN-CA/contact-sign-up/" title="Sign-up"> Sign-up //

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

You should be able to use display: none or visibility: hidden for this but if it isn't working for some reason, there's a way to hide aria-labels.

Use aria-hidden="true". For example, <p aria-hidden="true">Hidden Aria Label</p>.

about 4 years ago · Juan Pablo Isaza Report

0

CSS

If you want to hide the entire element based on the aria-label you can do that with CSS, if the element is an anchor <a> element you can do:

a[aria-label="Sign-up"] {
    display: none;
}

Just swap out whatever the element is if it isn't a button (you haven't mentioned what the HTML element is in your question).

JavaScript

If you want to remove just the attribute (not the full element) and you don't have access to the HTML you have to do this with JavaScript instead of CSS.

You haven't included the HTML of the element itself, but you can select by the aria label itself:

document.querySelector('aria-label[Sign-up]').removeAttribute('aria-label');

... if this is the only sign up instance on the page where you want it removed this will work fine. If you have multiple instances on the page you would need to do:

document.querySelectorAll('aria-label[Sign-up]').forEach(label => {
    label.removeAttribute('aria-label');
})
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!