Skip to content

Commit

Permalink
Fix linked image block style/behaviour
Browse files Browse the repository at this point in the history
Fix #308
  • Loading branch information
kyoshino committed Jan 16, 2025
1 parent 4ebb7d2 commit 8b6521f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@
size="small"
iconic
aria-label={$_('remove')}
onclick={() => {
onclick={(event) => {
event.preventDefault();
event.stopPropagation();
onChange(new CustomEvent('remove'));
}}
>
Expand Down Expand Up @@ -124,8 +126,10 @@
<style lang="scss">
.wrapper {
display: inline-block; // Cancel underline if the component is within a link
border: 1px solid var(--sui-secondary-border-color);
border-radius: 4px;
color: var(--sui-secondary-foreground-color); // Reset color within a link
background-color: var(--sui-primary-background-color);
white-space: normal;
-webkit-user-select: none;
Expand Down

0 comments on commit 8b6521f

Please sign in to comment.