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

[4.0] mod_article_news readmore #30780

Merged
merged 1 commit into from
Sep 27, 2020
Merged

[4.0] mod_article_news readmore #30780

merged 1 commit into from
Sep 27, 2020

Conversation

brianteeman
Copy link
Contributor

accessibility

If you have enabled show readmore in the module then it will only display the text "read more" with the link which is ambiguous.

As a result if you are displaying more than one item in the module you have multiple links all with the same ambiguous link name.

additional issues

The text is always "read more" even if you have set a custom text in the article options (globally or per article)

The link title is never displayed even if you have set it to be displayed in the article options (globally or per article)

The read more link in the module has different markup to the readmore link in an article making consistent styling harder

Fix

This PR simply changes the module to use the existing joomla.content.readmore layout

Test

Create a module of type Article News
test the module option for readmore
test all the com_content options for readmore
test all the individual article options for readmore

It is expected that depending on the options above there will be either

  • no readmore
  • readmore + aria label
  • readmore + article title + arial label

### accessibility
If you have enabled show readmore in the module then it will only display the text "read more" with the link which is ambiguous.

As a result if you are displaying more than one item in the module you have multiple links all with the same ambiguous link name.

### additional issues
The text is always "read more" even if you have set a custom text in the article options (globally or per article)

The link title is never displayed even if you have set it to be displayed in the article options (globally or per article)

The read more link in the module has different markup to the readmore link in an article making consistent styling harder

### Fix
This PR simply changes the module to use the existing joomla.content.readmore layout

### Test
Create a module of type Article News
test the module option for readmore
test the com_content options for readmore
test the individual article options for readmore

It is expected that depending on the options above there will be either
- no readmore
- readmore + aria label
- readmore + article title + arial label
@chmst
Copy link
Contributor

chmst commented Sep 26, 2020

I have tested this item ✅ successfully on f5999c5


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

1 similar comment
@jwaisner
Copy link
Member

I have tested this item ✅ successfully on f5999c5


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

@jwaisner
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added RTC This Pull Request is Ready To Commit and removed PR-4.0-dev labels Sep 27, 2020
@richard67 richard67 merged commit 0f3af5e into joomla:4.0-dev Sep 27, 2020
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Sep 27, 2020
@richard67
Copy link
Member

Thanks!

@richard67 richard67 added this to the Joomla 4.0 milestone Sep 27, 2020
@brianteeman
Copy link
Contributor Author

thx

@brianteeman brianteeman deleted the rh11 branch September 27, 2020 20:40
dgrammatiko added a commit to dgrammatiko/joomla-cms that referenced this pull request Sep 29, 2020
…ger_events_consistency

* '4.0-dev' of github.com:joomla/joomla-cms: (84 commits)
  [4.0] Error in legacy plugins when method contains $event argument (joomla#30575)
  [4.0] Cassiopea table css (joomla#30740)
  [4.0] Blog view links (joomla#30788)
  Change grid minmax definition for newsflash module (joomla#30781)
  [4.0] Pluginless lazyloading for the core (joomla#30748)
  Update package-lock.json (joomla#30713)
  [4.0] mod_article_news readmore (joomla#30780)
  Improve code, remove separator (joomla#30785)
  [4.0] Template layout select (joomla#30772)
  [4.0][CLI] com_finder use console command (joomla#30768)
  [4.0] Modifying com_actionlogs string (joomla#30758)
  [4.0] Fancy selectbox fix (joomla#30739)
  [4.0] Add missing Table Caption (joomla#30763)
  [4.0] Wrap all buttons in btn-group to improve styling (joomla#30761)
  [4.0] Cassiopeia missing string (joomla#30765)
  Improve batch text (joomla#28447)
  Fix icons not displaying (joomla#30749)
  Remove the chrome "cardGrey". The same effect can be achieved by using the module class "card-grey" with the "card" chrome (joomla#30734)
  Remove obsolete html code (joomla#30737)
  [4.0] Check out improvements related to nullable columns (joomla#30747)
  ...

� Conflicts:
�	administrator/components/com_media/resources/scripts/app/Api.js
�	administrator/components/com_media/resources/scripts/components/toolbar/toolbar.vue
�	package-lock.json
sakiss pushed a commit to sakiss/joomla-cms that referenced this pull request Oct 16, 2020
This PR simply changes the Article News module to use the existing joomla.content.readmore layout
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

Successfully merging this pull request may close these issues.

5 participants