Skip to content

Ripple Specification

Radoslav Karaivanov edited this page Aug 11, 2021 · 1 revision

Ripple Specification

Contents

  1. Overview
  2. User Stories
  3. Functionality
  4. Test Scenarios
  5. Accessibility
  6. Assumptions and Limitations

Owned by

Team Name: Design and Web Development (DnD)

Developer Name: Radoslav Karaivanov (@rkaraivanov)

Designer Name: Stefan Ivanov

Requires approval from

  • Dyan Dimitrov | Date:

Signed off by

  • Radoslav Mirchev | Date:
  • Damyan Petev | Date:

Revision History

Version Users Date Notes
1 Radoslav Karaivanov 11 Aug 2021 Added specification

Ripple defines an area which indicates user action with ripple animation.

Objectives

When defined inside a DOM element, the ripple activates when the parent element receives a mouse/touch event (mousedown)

Acceptance criteria

  1. Define a ripple element inside a parent element.
  2. Activate ripple animation on user interaction with parent element.

Developer stories:

Define a ripple effect on a certain DOM element.

<igc-button>
    Process transaction
    <igc-ripple></igc-ripple>
</igc-button>

End-user stories:

The ripple should provide a way to show user interaction.

3.1 End-User Experience The ripple component should always display a ripple effect inside its parent container on user interaction.

Properties

None applicable

Slots

None applicable

CSS Parts

None applicable

CSS Variables

Name Description Default value
--color Color of the ripple effect --igc-gray-800

None applicable

None applicable to the ripple element itself. End-users can define appropriate aria properties on the containing element themselves.

By default, the ripple component expects its parent element to have position: relative as part of its style rules.

Clone this wiki locally