File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed
stacks-classic/lib/components/popover
stacks-docs/product/components
stacks-svelte/src/components/Popover Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @stackoverflow/stacks " : patch
3+ " @stackoverflow/stacks-svelte " : patch
4+ ---
5+
6+ Change popover close icon to Cross
Original file line number Diff line number Diff line change 3131 float : right ; // Use floats for title wrapping
3232 top : calc (var (--su8 ) * -1 ); // Compensate for s-popover's padding
3333 right : calc (var (--su8 ) * -1 ); // Compensate for s-popover's padding
34- padding : var (--su8 ) !important ;
34+ padding : var (--su6 ) !important ;
3535 }
3636
3737 & &--content {
Original file line number Diff line number Diff line change 283283 < div id ="popover-example " class ="s-popover is-visible " role ="menu ">
284284 < button class ="s-popover--close s-btn s-btn__muted " aria-label ="Close "
285285 data-action ="s-popover#toggle ">
286- @Svg.ClearSm
286+ @Svg.Cross
287287 </ button >
288288 < div class ="s-popover--content ">
289289 …
293293{% endhighlight %}
294294 < div class ="stacks-preview--example bg-black-100 ">
295295 < div class ="s-popover ps-relative is-visible ">
296- < button class ="s-popover--close s-btn s-btn__muted " aria-label ="Close "> {% icon "ClearSm " %}</ button >
296+ < button class ="s-popover--close s-btn s-btn__muted " aria-label ="Close "> {% icon "Cross " %}</ button >
297297 < div class ="s-popover--content ">
298298 < p class ="mb0 "> Dismissible persistent popover presented with a close button</ p >
299299 </ div >
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import Icon from " ../Icon/Icon.svelte" ;
3- import { IconClear } from " @stackoverflow/stacks-icons-legacy /icons" ;
3+ import { IconCross } from " @stackoverflow/stacks-icons/icons" ;
44 import { usePopoverContext } from " ./Popover.svelte" ;
55
66 interface Props {
3434 type =" button"
3535 onclick ={handleClick }
3636>
37- <Icon src ={IconClear } />
37+ <Icon src ={IconCross } />
3838</button >
You can’t perform that action at this time.
0 commit comments