Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dimmer feature missing. #3005

Closed
ghost opened this issue Mar 8, 2020 · 4 comments
Closed

Dimmer feature missing. #3005

ghost opened this issue Mar 8, 2020 · 4 comments

Comments

@ghost
Copy link

ghost commented Mar 8, 2020

Description

Feature => A dimmer hides distractions to focus attention on particular content. A dimmer will automatically be created when a dimming behavior is triggered on an element.

Types of Dimmer

  1. Simple => A simple dimmer displays no content.
  2. Content => It can display content.
  3. Page => A dimmer can be formatted to be fixed to the page.
@cchaos
Copy link
Contributor

cchaos commented Mar 8, 2020

Hi @walter-ind , I'm still not following what it is you are proposing. Do you have any examples with screenshots? Also, is there are a particular use-case/need for this component?

We don't usually add features/components just to align with other UI systems in the wild, but wait for a specific need identified by a consumer. At the same time, if you want to build something like this, we encourage you to come up with a fully detailed spec including use-cases that describes exactly what it is and what it's intended for.

Here is an example of a starter-spec: #1689

@ghost
Copy link
Author

ghost commented Mar 9, 2020

Description

Guiding Principles

We work on variety of apps and execute many actions while going through our work. Sometimes, we work on some really important and confidential tasks that needs confirmation from the application side that it has got completed and no other remaining action has been left to be taken.
The work could be anything like sending an email to your boss/PL(Project leader) about your unavailbility for some days, making any account on any social networking website , sending message to your loved ones etc.

In all those cases, our whole attention should be on the fact that whether the task has been executed properly or not. Thus, we need something to popup as soon as our task reaches it's destination so that our whole attention is diverted to that popup message and we get confirmed that our work has got completed.

The above purpose is served by "Dimmer" Component.

Features

  • A dimmer hides distractions to focus attention on particular content.
  • A dimmer will automatically be created when a dimming behavior is triggered on an element.

Types of Dimmer

  1. Simple => A simple dimmer displays no content.
  2. Content => It can display content.
  3. Page => A dimmer can be formatted to be fixed to the page.

GIF(s)

  1. Simple Dimmer Demo

ezgif com-gif-maker (1)

  1. Content Dimmer Demonstration

ezgif com-gif-maker (2)

  1. Page Dimmer Demonstration

In page dimmer, this dimmer is present on the whole page.

In all the above cases, when + button is clicked, then dimmer is triggered whereas when - button is clicked, then dimmer goes away.

@ghost
Copy link
Author

ghost commented Mar 10, 2020

@cchaos have a look at above.

@cchaos
Copy link
Contributor

cchaos commented Mar 10, 2020

Thanks @walter-ind for the in-depth description. Now that I see what you are talking about, we actually do have this feature. It's called EuiOverlayMask. Consumers can use this in conjunction with simple text, toast, or modals to provide the exact experience you are talking about.

We've discussed this as a group and decided that it already exists we are just missing the documentation. So I'm going to close this one in favor of documenting that component.

@cchaos cchaos closed this as completed Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant