Skip to content

Link button

For navigation that has to carry the weight of a button.

Actions

Live preview

Source

<a class="dc-lbtn" href="#">요금제 보기</a>
.dc-lbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--dc-2);
  min-height: 44px; padding: 0 var(--dc-5);
  border: 1px solid var(--dc-brand); border-radius: var(--dc-r-sm);
  background: var(--dc-brand); color: var(--dc-text-on);
  font-family: var(--dc-font); font-size: 15px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background var(--dc-fast);
}
.dc-lbtn:hover { background: var(--dc-brand-hi); border-color: var(--dc-brand-hi); }
.dc-lbtn--outline {
  background: transparent; border-color: var(--dc-line-field); color: var(--dc-text);
}
.dc-lbtn--outline:hover { background: var(--dc-sunken); border-color: var(--dc-text-sub); }
.dc-lbtn--text {
  display: inline; white-space: normal;
  min-height: 0; padding: 0; border: 0; background: transparent;
  color: var(--dc-brand-text); font-weight: 500;
  text-decoration: underline; text-underline-offset: .15em;
}
.dc-lbtn--text:hover { background: transparent; }
.dc-lbtn__icon { width: 16px; height: 16px; flex: none; }

How to use it

  • Navigating is an a element, acting is a button element — choose by what it does, not how it looks
  • If it opens a new tab, say so with hidden text or an icon before the click
  • No destination means no link — use a button instead of an empty href

Watch out for

  • However button-like it looks, an a element does not fire on Space — the keyboard behaves differently
  • Keep the underline in the text variant; colour alone does not mark a link

Next