Skip to content

Bug: Frequent triggering of redrawing of navigation bar icons #4917

@dl2458697735

Description

@dl2458697735

Describe the bug

The arrow icons in the navigation bar frequently trigger redrawing

Reproduction

[class^='vpi-']:not(.bg), [class*=' vpi-']:not(.bg), .vp-icon:not(.bg) {
/* -webkit-mask: var(--icon) no-repeat; */
mask: var(--icon) no-repeat;
-webkit-mask-size: 100% 100%;
mask-size: 100% 100%;
background-color: currentColor;
color: inherit;

Image

Expected behavior

I hope to use SVG and other methods instead of using masks to display icons, which can avoid frequent redrawing

System Info

"vitepress": "^1.6.4",

Additional context

Image

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    need more infoFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions