? ? Pending

User tests: Successful: Unsuccessful:

avatar degobbis
degobbis
19 Mar 2018

Summary of Changes

Make calendar button usable in other css-frameworks
Edit:
Make calendar output usable in other css-frameworks
For testing instruction look at this comment

Documentation Changes Required

In BS3 the input-group can not handle the button tag, so it is now changed from a button tag before to an a tag.
Edit:
Other frameworks, such as Uikit, do not properly render the calendar design for active days. This PR fixes that.

avatar degobbis degobbis - open - 19 Mar 2018
avatar degobbis degobbis - change - 19 Mar 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Mar 2018
Category Layout JavaScript
avatar mbabker
mbabker - comment - 19 Mar 2018

I think the change in the JavaScript to support both <a> and <button> is fine but semantically I think the default markup should stay as a <button> and if you need to use an <a> element you should override the layout.

avatar degobbis
degobbis - comment - 19 Mar 2018

Same problem we will have with BS4 in J4, so why not makes the changes now?

avatar mbabker
mbabker - comment - 19 Mar 2018

Maybe someone better with accessibility (or frontend in general) can chime in here but it's not a good practice to misuse a <a> element when you aim to represent a button on the page. So semantically the current markup structure is correct and I'd personally argue the frameworks should address the bugs in their code. Or, I could be totally wrong here and the change doesn't matter. But at first glance this doesn't seem like a correct change in terms of proper markup structure.

avatar degobbis
degobbis - comment - 19 Mar 2018

You are right, the change between <button> and <a> makes a difference for accessibility.
Can we still adopt the customizations in the JS and CSS?

avatar mbabker
mbabker - comment - 19 Mar 2018

The CSS and JS changes look fine to me at a quick glance without actually testing them (since the JS changes are just adding support for looking for an <a> element as well as <button>).

avatar degobbis degobbis - change - 19 Mar 2018
Labels Added: ?
avatar dgt41
dgt41 - comment - 19 Mar 2018

so why not makes the changes now?

Well the calendar, as the rest of the fields in J4, will be custom elements #19427. So all I wanted to say is this code is going to be majorly deprecated in J4 (might stay as is in the legacy folder, although I really like to see this thing die)

avatar joomla-cms-bot joomla-cms-bot - change - 19 Mar 2018
Category Layout JavaScript
avatar Quy
Quy - comment - 19 Mar 2018

Is #15928 a duplicate issue?

avatar degobbis
degobbis - comment - 19 Mar 2018

It looks quite like this. However, in my tests it was enough for .calendar-container table tbody td.today to set the width from 100% to auto.
In that case, I can close this PR.
Thanks to all.

avatar degobbis degobbis - change - 19 Mar 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-03-19 23:18:07
Closed_By degobbis
avatar degobbis degobbis - close - 19 Mar 2018
avatar Quy
Quy - comment - 19 Mar 2018

@degobbis Please consider reopening this PR and make your change to calendar-rtl.css too. I will close the other PR since it is pending a change for awhile now. Also, please provide steps to reproduce the issue. Thanks.

avatar degobbis degobbis - change - 19 Mar 2018
Title
Make calendar button usable in other css-frameworks
Make calendar output usable in other css-frameworks
avatar degobbis degobbis - edited - 19 Mar 2018
avatar degobbis degobbis - change - 19 Mar 2018
Status Closed New
Closed_Date 2018-03-19 23:18:07
Closed_By degobbis
avatar degobbis degobbis - change - 19 Mar 2018
Status New Pending
avatar degobbis degobbis - reopen - 19 Mar 2018
avatar degobbis
degobbis - comment - 19 Mar 2018

The other PR actually pretty much describes the problem. I had the same flawed output as shown in the pictures, with the UIkit framework from Yootheme.

avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Mar 2018
Category JavaScript Layout
avatar joomla-cms-bot joomla-cms-bot - change - 20 Mar 2018
Category JavaScript Layout
avatar degobbis
degobbis - comment - 20 Mar 2018

Testing Instructions

  • Download and install Yootheme Master2 (direct link) Edit: (Download-Site) to use Uikit as CSS-Framework
  • Make theme as default and configure it to disable Bootstrap (You find this option under the tab
    Options -> Settings in the theme style settings
  • Download, install and enable my plugin to create forms JTF (do not be scared, it's almost all in German, because it is mainly used in our agency in Germany)
  • Create a new menuitem with new content and insert the plugin call
    {jtf theme=calendar|framework=uikit}
  • Now go to frontend an test the field

Expected result

  • Calendar looks like normal

Actual result

Quite a lot of effort for customizing two CSS lines without a B/C break

avatar degobbis degobbis - change - 20 Mar 2018
The description was changed
avatar degobbis degobbis - edited - 20 Mar 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Mar 2018
Category JavaScript Layout
avatar zero-24
zero-24 - comment - 24 Mar 2018

I have tested this item successfully on 7df2ac0

Works good screenshots are following now.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19944.

avatar zero-24 zero-24 - test_item - 24 Mar 2018 - Tested successfully
avatar zero-24
zero-24 - comment - 24 Mar 2018

Uikit before patch

screen shot 2018-03-24 at 10 19 16

Uikit after patch

screen shot 2018-03-24 at 10 20 27


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19944.

avatar astridx
astridx - comment - 24 Mar 2018

I followed the test instructions in #19944 (comment). And my test was successful.

Before applying the patch the calendar in yootheme master2 uikit
home 4

After applying the patch the calendar in yootheme master2 uikit
home 3

After applying the patch the calendar in protostar
home 1

avatar astridx
astridx - comment - 24 Mar 2018

I have tested this item successfully on 7df2ac0


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19944.

avatar astridx astridx - test_item - 24 Mar 2018 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 24 Mar 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 24 Mar 2018

Ready to Commit after two successful tests.

avatar mbabker mbabker - change - 25 Mar 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-03-25 14:59:01
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 25 Mar 2018
avatar mbabker mbabker - merge - 25 Mar 2018
avatar joomla-cms-bot joomla-cms-bot - change - 25 Mar 2018
Category JavaScript Layout

Add a Comment

Login with GitHub to post a comment