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

CircleType.js not adding text to "aria-label" #143

Open
matthewmeaklim opened this issue Feb 18, 2022 · 2 comments
Open

CircleType.js not adding text to "aria-label" #143

matthewmeaklim opened this issue Feb 18, 2022 · 2 comments

Comments

@matthewmeaklim
Copy link

Been tryna follow the docs here, https://circletype.labwire.ca/, on how to set this up and think I've followed everything correctly, however, the expected result isn't what I get.

In the examples on the page referenced above, the text inside the target element gets pulled into the "aria-label" attribute, whereas for me it's always blank.

Here's my code:

Reviews Reviews Reviews

.circular-text_wrapper {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2;

.circular-text {
    color: transparent;
    -webkit-text-stroke: 1px $navy;
    font-family: $sedgwickAveDisplay;
    font-size: 24px;
    font-weight: 400;
    font-style: normal;
    line-height: 24px;
    text-transform: uppercase;
}

}

const circleType = new CircleType(
document.getElementById('circular-text')
).radius();

The circletype.min.js file is pulling in ahead of the above JS, and I'm not getting any errors in the console - and as far as I can tell it is at least trying to work as it does remove my text from #circular-text, just never adds it to the aria-label for whatever reason.

You can inspect the code here, https://matthewmeaklim.com - it's inside the image within the reviews section just above the footer.

I guess I'm doing something daft but can't for the life of me see what it is.

Many thanks in advance.

P.S. Looks to be a great plugin from the examples!

@shyko
Copy link

shyko commented Mar 17, 2022

@matthewmeaklim I have the same issue. Did you find any solution?

@matthewmeaklim
Copy link
Author

matthewmeaklim commented Oct 11, 2022 via email

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

No branches or pull requests

2 participants