-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Describe the bug
When the component loads the icon is only showing a green circle and no checkmark. I noticed when looking in the shadow root that the path in the svg is nested within another path but on the rhds site the paths are siblings not nested and the icon is correct. I have no idea why the paths are getting nested.
Which Component?
rh-site-status
Steps to reproduce
The rh-site-status component in the footer of access.redhat.com is not live yet. The live footer is using the old hard coded status widget.
I am able to reproduce this issue by:
- Cloning the Primer repo locally
- Adding the import statement at the end of body in the root index.html file
- Adding the component to the footer within the ul#status-widget__desktop li
- Go to the project local url: https://prod.foo.redhat.com:1337/services/primer/example/
- Scroll to the footer
- Observe that the icon is only a green circle instead of a green circle with the checkmark.
Here is the svg that is getting loaded into Primer
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
<!--?lit$837365295$-->
<path d="M8 16.5C12.4183 16.5 16 12.9183 16 8.5C16 4.08172 12.4183 0.5 8 0.5C3.58172 0.5 0 4.08172 0 8.5C0 12.9183 3.58172 16.5 8 16.5Z" fill="#63993D">
<path d="M6.89999 12.1C6.69999 12.1 6.49999 12 6.39999 11.9L3.49999 9.00001C3.19999 8.70001 3.19999 8.30001 3.49999 8.00001C3.79999 7.70001 4.19999 7.70001 4.49999 8.00001L6.89999 10.4L11.5 5.80001C11.8 5.50001 12.2 5.50001 12.5 5.80001C12.8 6.10001 12.8 6.50001 12.5 6.80001L7.39999 11.9C7.19999 12 6.99999 12.1 6.89999 12.1Z" fill="white"></path>
</path>
</svg>
Here is the svg getting loaded in the rhds demo
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none"><!--?lit$774017727$-->
<path d="M8 16.5C12.4183 16.5 16 12.9183 16 8.5C16 4.08172 12.4183 0.5 8 0.5C3.58172 0.5 0 4.08172 0 8.5C0 12.9183 3.58172 16.5 8 16.5Z" fill="#63993D"></path>
<path d="M6.89999 12.1C6.69999 12.1 6.49999 12 6.39999 11.9L3.49999 9.00001C3.19999 8.70001 3.19999 8.30001 3.49999 8.00001C3.79999 7.70001 4.19999 7.70001 4.49999 8.00001L6.89999 10.4L11.5 5.80001C11.8 5.50001 12.2 5.50001 12.5 5.80001C12.8 6.10001 12.8 6.50001 12.5 6.80001L7.39999 11.9C7.19999 12 6.99999 12.1 6.89999 12.1Z" fill="white"></path>
</svg>
For some reason the one being loaded on Primer has the path nested inside of the other one instead of two separate paths at the same level.
Expected behaviour
The green circle loads with the white checkmark
Screenshots
Loading the component in Primer locally
Loading the component in the rhds demo
Element HTML
<rh-site-status></rh-site-status>
Operating System (OS)
macOS
Browser
Chrome
More browser information
Chrome 125
Mac OS (Sonoma)
RHDS v1.4.1
Additional Info
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status