Problem/Motivation
After updating, collapse icon is displayed on the left side overlapping text. Can't fix icon placement.
Steps to reproduce
1. Install Collapsiblock (4.3 & drupal core 10.3.5)
2. Configure collapsiblock on a block (in this case, solr search facets)
3. Observe the block on the page
Observed Result:
The block arrow is now located on the left side, overlapping text.
It appears to be caused by the background image placement in the css:
.collapsiblockTitleCollapsed button {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEUBawAAAACA2Sw2AAAAAnRSTlMA/1uRIrUAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAUSURBVHicY1BgMGCwYLABYgMGBQAJIgFNAWOT0AAAAABJRU5ErkJggg==) no-repeat left;
}
^ the "left" at the end of the css is causing this.
Adjusting the css to be "no repeat right" instead of left fixes the issue
Proposed resolution
the button icon is displayed properly.
Perhaps an option for users to be able to control the placement if this is intentional
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2024-09-20 at 10.20.43 AM.png | 6.14 KB | sbrenner02 |
Issue fork collapsiblock-3475835
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
darvanenWow ok, yeah I have to figure out how the rtl css was triggered way back when it wasn't bundled like it is now, I guess I assumed that css file had some wrapper classes in it!
Comment #4
darvanenI've removed the reference to the rtl css. I can't find evidence of that having been in use for a VERY long time.
Clearly there was intential to support RTL languages at some point, I'm going to open a feature request to revive that.
Setting to 'Needs review'
Comment #5
darvanenAlrighty, tests are green, I'd really love a manual confirmation that this fixes the reported issue in the theme you're using.
Comment #6
darvanenFollow-up: #3475907: RTL support
Comment #7
sbrenner02 commentedI pulled down the MR build and refreshed my local files, the issue is still occurring locally for me.
Comment #9
darvanenThat is exceedingly strange, the build CSS no longer contains the 'left' directive:
Could I ask if you cleared your cache after pulling the MR?
I've committed this so perhaps you could pull the dev version just to confirm you have the right code?
Comment #11
darvanenOh dear, I'm all sorts of messed up today, ignore that commit, I intended it for a different branch.
Comment #14
darvanenBackported to 4.2.x