Step to reproduce:
Visit a page in which there are one or more action button (defined in theme.links.action.yml) and you will see a bullet before the button.
bullet in action

Comments

DuneBL created an issue. See original summary.

komalk’s picture

Assigned: Unassigned » komalk
komalk’s picture

Assigned: komalk » Unassigned
Status: Active » Needs review
StatusFileSize
new11.74 KB
new11.27 KB
new1.03 KB

Here is the fixed review the patch attached before after patch screen shot for the reference.

kiran.kadam911’s picture

Assigned: Unassigned » kiran.kadam911
mherchel’s picture

How can I test this out? Do I need to create a specific type of field or view?

dunebl’s picture

create a file olivero.links.action.yml
with the following content

action.test:
  route_name: node.add
  title: 'Add an article'
  route_parameters:
    node_type: 'article'
  appears_on:
    - view.frontpage.page_1

Then check your front page

kiran.kadam911’s picture

@DuneBL created olivero.links.action.yml in Olivero theme root but nothing happens on the front-page(default Olivero front-page). Is anything I am missing or can you please let me know steps to re-produce it that will be helpful. Thanks!

dunebl’s picture

Sorry, it looks like adding actions in a theme doesn't works; it should be done in module...
Anyway a more simple way to test would be to
1-make sure to not use an administrative theme: select olivero in the dropdown at the very end of the page /admin/appearance
2-goto /admin/content to see the action button "Add Content"

Hope this help!

matija5’s picture

In action-link.css file there is .action-links selector that I can not find in output or in templates.

Should there be block--local-actions-block.html.twig template in Olivero?

Currently Olivero uses core/modules/system/templates/menu-local-action.html.twig for local action.

Claro for example uses templates/block--local-actions-block.html.twig for block (where it ads its local action classes) and core/themes/classy/templates/navigation/menu-local-action.html.twig for list item.

If I add .action-links to list item then link action is displayed without bullet with patch#3.

kiran.kadam911’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new254.87 KB
new574.09 KB
new217.57 KB

Hello @komalkolekar @DuneB,

I didn't found Add content action link even after enabling olivero as admin theme. So I tested patch #3 on structure > blocks > place block and it's working fine for action links hopefully same will get applied for add content.

Before patch:

After patch:

Observation: One thing that I noticed in structure > blocks alignment of block labels, category, etc. are not proper it has to be like vertically center in my opinion. If it is the right observation then we need to create a separate issue to handle it because I am not aware if there is an existing issue that is there to handle it.

Feel free to add your opinion, Thanks!

kiran.kadam911’s picture

Assigned: kiran.kadam911 » Unassigned
mherchel’s picture

Status: Reviewed & tested by the community » Needs work

This is close. A couple notes:

1) Let's use var(--sp) instead of 1em to keep vertical rhythm consistent
2) Unfortunately we'll need to load this in the main bundle. There doesn't appear to be a core library that we can extend.
3) I looked at Bartik's implementation. They're setting the LI element to inline block so the buttons align when there are multiple buttons. This patch doesn't do that... they stack vertical. Let's do that.

kiran.kadam911’s picture

Assigned: Unassigned » kiran.kadam911

Taking this up.

@mherchel
- No idea about pt.2 from the last comment, can you pls provide brief info that will be helpful.
- About pt.3 will apply inline-block to li for desktop and for mobile it will be like a stack.

Thanks!

mherchel’s picture

No action item on #2. I was just making a note.

matija5’s picture

Patch #3 does not work everywhere. I activated Olivero as admin theme and Primary admin actions block in sidebar still has bullets. If I copy 'block--local-actions-block.html.twig' from Seven then styling gets applied with patch provided.

kiran.kadam911’s picture

Assigned: kiran.kadam911 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.73 KB
new1.07 KB

Hello,

Kindly review the attached patch.

As per your comments, Handled both points as per @mherchel comment(pt1. margin set to 0 because cta button is already having margin) and created block--local-actions-block.html.twig for Primary admin actions block as per @vebrovski comment.

Thanks!

poojakural’s picture

Assigned: Unassigned » poojakural
poojakural’s picture

StatusFileSize
new96.96 KB
new102.47 KB

@kiran.kadam911 tested the patch. Worked for me. Please refer the SS

Before:

bullet links

After:
Bullet Links After

poojakural’s picture

Assigned: poojakural » Unassigned
indrajithkb’s picture

Status: Needs review » Needs work
StatusFileSize
new5.1 KB
new3.6 KB

Hi @kiran.kadam911 thanks for the patch, and i have some findings

1. Button letter color is black which should be the same color as other buttons (default state)
Attaching screenshot after patch-16:

after patch

Expected behaviour:

expected

2. You have added the template (block--local-actions-block.html.twig) which is not affecting in the theme.

poojakural’s picture

Assigned: Unassigned » poojakural
poojakural’s picture

Assigned: poojakural » Unassigned
Status: Needs work » Needs review
StatusFileSize
new13.34 KB
new401 bytes

@Indrajith KB Please review the updated patch with fixes of obove issue. This line of code causing issue

.ui-widget-content a {
color: #333333/*{fcContent}*/;
}

Actual Issue:
Only local images are allowed.

Fixed Issue:
fixed issue

pradeepjha’s picture

Hi @poojakural,
In your patch some changes are missing if you compare with #16 patch. Is it intended changes? Also please attach interdiff file.

poojakural’s picture

Assigned: Unassigned » poojakural
Status: Needs review » Needs work
poojakural’s picture

Assigned: poojakural » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.34 KB
new1.72 KB
new1.34 KB

Please review the updated patch with fixes of obove issue

poojakural’s picture

Please ignore this above patch 3151586-24.patch

pradeepjha’s picture

StatusFileSize
new1.81 KB
new901 bytes

Last patch failed to apply. So I'm applying new patch against #16 . Fixing hover text color issue reported by @Indrajith KB. Please review it.

indrajithkb’s picture

StatusFileSize
new11 KB
new7.14 KB
new1.28 KB
new1.74 KB

Hi @vebrovski nice finding, now the issue has fixed.

considering for the #15 and #27

for #15.

fixed

for #27

fixed

according to #12, 3rd point we no need to restrict the display:inline-block with media query. We need the display:inline-block for all width.

So please re-roll the patch according to the #12, 3rd point.

NB: Please avoid the patch #28 and interdiff .

ju.vanderw’s picture

Issue summary: View changes
StatusFileSize
new14.75 KB
new14.32 KB
new23.48 KB
new14.78 KB

Reviewed, but I'm a bit confused on what the "correct" colors on hover should be... Here are the results of my testing patch 27.
Regular:

Color: #0d77b5

Hover:

Color: #2494db

Focus:

ju.vanderw’s picture

ju.vanderw’s picture

Oops, I apologize. Looks like there was a new patch while I was reviewing...

indrajithkb’s picture

Hi @ju.vanderw, it's okay actually i was trying to addressing the point from #12.
Here we have used the right color (i have confirmed with other buttons and design)

indrajithkb’s picture

Status: Needs review » Needs work
poojakural’s picture

Assigned: Unassigned » poojakural
poojakural’s picture

Assigned: poojakural » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.75 KB
new932 bytes

@Indrajith KB As per you obove comment. I have made changes accordingly. Please review the patch and interdiff.

according to #12, 3rd point we no need to restrict the display:inline-block with media query. We need the display:inline-block for all width.

indrajithkb’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new9.41 KB

HI @poojakural thanks for the re-roll.I have reviewed the patch issue has found fixed

attaching screenshot for the multiple buttons:

after patch

mherchel’s picture

Status: Reviewed & tested by the community » Needs work

I tested this by setting Olivero to be the administration theme (once again, this isn't a use case we'll support), and then going to Block Layout, and hitting the "Place Block" button.

I see that it's not using the template that's included in the patch, it's using the core/modules/system/templates/menu-local-action.html.twig template.

To fix this we need

1) Do we need our own template? Since the one in the patch is not being utilized, I don't believe so
2) If we do need our own template, lets abstract the actions into its own library and call it from the template using attach_library.

indrajithkb’s picture

Assigned: Unassigned » indrajithkb
indrajithkb’s picture

Assigned: indrajithkb » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.89 KB
new1.86 KB

Hi @mherchel i have updated the patch with your above concerns.

1. i have removed the block--local-actions-block.html.twig template.
2. Added menu-local-action.html.twig template and attached the library through template.

Please review my patch.

mherchel’s picture

Status: Needs review » Reviewed & tested by the community

Looks good!

  • mherchel committed 3eff3d8 on 8.x-1.x authored by Indrajith KB
    Issue #3151586 by poojakural, Indrajith KB, kiran.kadam911, komalkolekar...
mherchel’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.