TipsBlocks Web Technique Library

PRACTICAL WEB TIP

← Back to library

Status Message Action

Contextual actions appear on a notification card and help distinguish completed notices.

Live Demo

Hover over the element or use Tab to focus.

Source Code

Copy the HTML, CSS or JavaScript you need for your project.

HTML
<div class="tbx-1057" tabindex="0"><div class="tbx-1057__dot" aria-hidden="true"></div><div class="tbx-1057__text"><b>Data sync complete</b><small>About 2 minutes ago · System notice</small><span>View synced data in the dashboard.</span></div><span class="tbx-1057__arrow" aria-hidden="true">→</span></div>
CSS
.tbx-1057{display:flex;gap:11px;align-items:flex-start;padding:16px 13px;width:min(290px,100%);border:1px solid #dce4eb;border-radius:9px;background:#fff;font-family:system-ui;color:#2d465a;transition:border-color .24s,background .24s,box-shadow .24s}
.tbx-1057__dot{flex:0 0 9px;width:9px;height:9px;border-radius:50%;background:#438f86;margin-top:5px;box-shadow:0 0 0 4px #e4f3ee;transition:transform .25s,box-shadow .25s}
.tbx-1057__text{flex:1;display:grid;gap:5px;min-width:0}.tbx-1057 b{font-size:11px}.tbx-1057 small{font-size:10px;color:#8a9aab}.tbx-1057__text span{font-size:10px;line-height:1.65;color:#647989}.tbx-1057__arrow{color:#a9b8c6;align-self:center;font-size:20px;transition:transform .24s,color .24s}
.tbx-1057:is(:hover,:focus-visible){border-color:#74b0a8;background:#f3fbf8;box-shadow:0 9px 20px #2c776b12}.tbx-1057:is(:hover,:focus-visible) .tbx-1057__dot{transform:scale(1.3);box-shadow:0 0 0 6px #d9eee6}.tbx-1057:is(:hover,:focus-visible) .tbx-1057__arrow{transform:translateX(3px);color:#27837a}
.tbx-1057:focus-visible{outline:3px solid #d6a36b;outline-offset:3px}@media(prefers-reduced-motion:reduce){.tbx-1057,.tbx-1057__dot,.tbx-1057__arrow{transition:none}}

How to Use

Insert the HTML and add the CSS to your stylesheet. Adjust colors and sizes and avoid class conflicts.

Use Case

Useful for data dashboards and help sections.

Technical Notes

Keep controls usable on touch devices. Test keyboard focus and reduced-motion preferences.

Mobile:Ensure the interactive content remains accessible without hover on touch devices.

Browser:Uses modern CSS. Check behavior in the browsers you support.

Reduced Motion:Check that prefers-reduced-motion is respected.