🌐 AI搜索 & 代理 主页
Skip to content

Commit ecb33bd

Browse files
authored
fix(b-avatar): badge z-index handling (#5975)
1 parent 0e22540 commit ecb33bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/avatar/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ When set to `true` (or the empty string `''`), it uses the Bootstrap default of
236236

237237
```html
238238
<template>
239-
<div style="font-size: 2rem;">
239+
<div>
240240
<b-avatar rounded="sm"></b-avatar>
241241
<b-avatar rounded></b-avatar>
242242
<b-avatar rounded="lg"></b-avatar>
@@ -381,7 +381,7 @@ Add textual content to the badge by supplying a string to the `badge` prop, or u
381381

382382
```html
383383
<template>
384-
<div style="font-size: 2rem">
384+
<div>
385385
<b-avatar badge="BV"></b-avatar>
386386
<b-avatar badge="7" variant="primary" badge-variant="dark"></b-avatar>
387387
<b-avatar badge-variant="info" src="https://placekitten.com/300/300">

src/components/avatar/_avatar.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
border-radius: 10em;
100100
font-size: 70%;
101101
font-weight: 700;
102-
z-index: 5;
102+
z-index: 1;
103103
}
104104
}
105105

@@ -142,7 +142,7 @@
142142
a,
143143
.btn {
144144
&.b-avatar:hover:not(.disabled):not(disabled) {
145-
z-index: 3;
145+
z-index: 1;
146146
}
147147
}
148148
}

0 commit comments

Comments
 (0)