custom-elements icon indicating copy to clipboard operation
custom-elements copied to clipboard

J4admin updated webcomponents

Open sahidhossen opened this issue 6 years ago • 17 comments

sahidhossen avatar Nov 04 '19 06:11 sahidhossen

You're missing the documentation for here: https://joomla-projects.github.io/custom-elements

C-Lodder avatar Nov 04 '19 09:11 C-Lodder

I have added the documentation in docs folder. Did you check changes ?

sahidhossen avatar Nov 04 '19 09:11 sahidhossen

Hi @C-Lodder can you check the issue in CI ?

Missing Sauce credentials. Did you forget to set SAUCE_USERNAME and/or SAUCE_ACCESS_KEY? The command "wct --configFile saucelabs.conf.json --plugin sauce" exited with 1.

sahidhossen avatar Nov 04 '19 10:11 sahidhossen

@sahidhossen i don't have access to the Saucelabs account.

@wilsonge or @dgrammatiko will have those details

C-Lodder avatar Nov 04 '19 10:11 C-Lodder

Variables are superficially there. Updated the key and restored it in travis and have updated the config to the latest travis approved version in their docs. works in the master branch now. So update your branch to master here and see what happens I guess.

Also can we remove the yarn-error log file from here please

wilsonge avatar Nov 04 '19 10:11 wilsonge

Just fixed the failures in the build quickly so hopefully we should get green when the branch is updated :)

wilsonge avatar Nov 04 '19 11:11 wilsonge

I don't get the failure :( https://travis-ci.org/joomla-projects/custom-elements/builds/607091608#L445 we can see the username is there. Obviously the access key is encrypted so not showing - but it has the same all branches config as the username - and we can see in the master branch it's clearly working.

wilsonge avatar Nov 04 '19 11:11 wilsonge

@wilsonge Is this the reason for the failure?

Encrypted environment variables have been removed for security reasons. See https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions

sahidhossen avatar Nov 04 '19 12:11 sahidhossen

Ahh yeah that would do it. They even mention sauce labs as an explicit example there 🤔 . So with travis we can't actually run the sauce lab tests until we've merged the pull request unless you've got write access to the project. Sounds fairly broken :)

wilsonge avatar Nov 04 '19 14:11 wilsonge

The following code is not correct because it may result in invalid markup const accordionTitle = document.createElement('h3');

By forcing the title to be a h3 then you can get an h3 directly after an h1 which is a serious accessibility failure

There may be other instances of this error - I just highlighted one as an example

brianteeman avatar Nov 04 '19 14:11 brianteeman

@brianteeman we create h3 tag inside joomla-accordion component and each accordion content always inside a section tag.

But if its a serious accessibility issue then can you suggest alternative solution for this?

For accordion I think we can use div rather than h3 .

sahidhossen avatar Nov 05 '19 05:11 sahidhossen

Yes its a serious accessibility issue so please make it a div AND also check that there are no other places that an Hx is used

brianteeman avatar Nov 05 '19 06:11 brianteeman

Ok I will update in accordion and check other places regarding the issue. Thanks for your suggestion.

sahidhossen avatar Nov 05 '19 06:11 sahidhossen

The days when H tags were used based on sizing lol

C-Lodder avatar Nov 05 '19 08:11 C-Lodder

Hi @C-Lodder , If it has no other issue then can you please merge this pull request and run CI ?

sahidhossen avatar Nov 12 '19 07:11 sahidhossen

I don't have the permissions to merge

C-Lodder avatar Nov 12 '19 07:11 C-Lodder

Oops the code changes I just commented on changing 0px to 0 should of course have been done in the scss file and not the generated css files

brianteeman avatar Nov 16 '19 21:11 brianteeman