Font Awesome SVGs eat clicks meant for their parent buttons (I could be misjudging the issue)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 58/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- css, php
- Lĩnh vực
- accessibility, frontend
Hướng nghiên cứu
Start by locating the bottom right buttons and their Font Awesome SVG styles, then check how clicks on the SVG affect the parent button. Compare the behavior with the reported .svg-inline--fa { pointer-events: none; } suggestion and verify clicks on both the icon and the button area. Done means the icon and surrounding button area trigger the same action.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
To start, I've encountered this issue on multiple versions of Heimdall. I run Heimdall in a Docker container on my NAS & it's managed via Dockhand. I believe that the issue is as the title says: the buttons in the bottom right corner seem to only work when the button is pressed outside of the icon on the button. I'm using Vivaldi & I went to Dev Tools > Inspect to see what was happening. I entered document.addEventListener('click', e => console.log('clicked:', e.target), true); in Console to do just that.
Outcome:
document.addEventListener('click', e => console.log('clicked:', e.target), true);
undefined
VM667:1 clicked: <div id="sortable" class="folders">…flex
VM667:1 clicked: <a id="config-button" class="config" href>…flex
VM667:1 clicked: <svg class="svg-inline--fa fa-exchange fa-w-16" aria-hidden="true" data-prefix="fas" data-icon="exchange" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" data-fa-i2svg>…
VM667:1 clicked: <a id="config-button" class="config" href>…flex
My apologies if I'm over explaining (especially, if it's a non-issue). "Sortable" was me clicking outside of the button for context. "Config-button" was me clicking inside the bounds of the button but not on the icon on the button. Next, was me clicking on the actual icon in the bounds of the button & getting a different result. Then, I repeated the 2nd click.
After to doing research, the supposed solution was this:
.svg-inline--fa { pointer-events: none; }
My YAML:
services:
heimdall:
image: linuxserver/heimdall:latest
container_name: heimdall
environment:
- PUID=1000
- PGID=1000
- TZ=America/Los_Angeles
- ALLOW_INTERNAL_REQUESTS=false #optional
volumes:
- /vol1/@team/Household/Heimdall/config:/config
ports:
- 9080:80
- 9443:443
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost/ || exit 1"]
interval: 1m
timeout: 10s
retries: 3
start_period: 30s
Heimdall version: v2.8.4-ls372
Docker Compose Version: 5.3.1
Not sure if I'm missing anything. I will gladly give more info, if needed/wanted. Thanks in advance for you time.
- Ngôn ngữ chính
- PHP
- Star
- 9.4k
- Fork
- 626
- Merge trung bình
- 13 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của linuxserver/Heimdall
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
linuxserver/Heimdall#1626 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 53/100
linuxserver/Heimdall#1624 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
linuxserver/Heimdall#1613 ·
-
no-issue-activity
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
linuxserver/Heimdall#1601 · 1 bình luận · 4 reaction ·
-
no-issue-activity
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
linuxserver/Heimdall#1588 · 4 bình luận ·
Tất cả issue của linuxserver/Heimdall
Issue tương tự
-
sync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
🔍 Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
coollabsio/coolify#12592 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Activity page icons previewĐang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100