Closed cpaelzer closed 5 years ago
As mentioned, this is an issue with the UA frontend not ua-client or ua-contracts specifically. Forwarding this issue to the appropriate project https://github.com/canonical-web-and-design/ua-token
Closing in favor of https://github.com/canonical-web-and-design/ua-token/issues/1
Note: This is not a UA-client issue, but I file it here for you to re-route it accordingly.
That failing button is defined as:
Affected Browsers (What is in Bionic as of today):
The css is from the vanilla framework, inspection shows
vanilla-framework-version-1.8.1.css
Based on that I guessed that some JS in the vanilla framework would assign an onclick to this class, but I haven't found any JS other than the google analytics. Of course my 20 year old web-foo might just be outdated.
But knowing that we use that style all over out tutorials and such I tried there and it worked fine e.g. on provisioning maas
Inspecting (and comparing) that showed the same button tech:
<button class="p-code-snippet__action">Copy to clipboard</button>
But the broken (contracts.canonical.com) had no Event Listeners at all on that button. While the tutorial had several registered, those were a bunch of google analytics tags but more importantly also this:
This seems to be the missing code
And knowing that we find in the main page the loaders:
And the broken page has nothing there:
Please fix https://auth.contracts.canonical.com/ to carry the code to be active on that copy-to-clipboard button