fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Add support for semi-transparent background for floating content

Open miroslavstastny opened this issue 2 years ago • 10 comments

Native menus and popover in Mac OS use semi-transparent blurred background: image image

Add support for the semi-transparent backgrounds to FUIR9 floating content - Menu, Popover...

This issue is to gather detailed requirements, think about the solution and provide an estimate.

CSS PoC: https://codepen.io/levithomason/pen/RwEjNKp

miroslavstastny avatar Oct 10 '23 22:10 miroslavstastny

For this feature we might require some levels of overrides:

  1. global level flag that sets up every surface element as transparent (this could be a context)
  2. component level property that allows component to opt-out of the global flag (this could be a context)

bsunderhus avatar Apr 18 '24 07:04 bsunderhus

This feature should affect surface components (not including Dialog):

  1. Menu
  2. Popover
  3. Tooltip
  4. Combobox
  5. Dropdown
  6. TagPicker
  7. Toast (?)
  8. Select (?)

@miroslavstastny, am I missing something?

bsunderhus avatar Apr 18 '24 07:04 bsunderhus

What happens on the case of Popover appearance="brand|inverted", do we have styles for those? https://react.fluentui.dev/?path=/docs/components-popover--default#appearance

We'll also need styles for when the background is dark!

bsunderhus avatar Apr 18 '24 08:04 bsunderhus

How should elements with background color behave inside of a semi-transparent surface? like a Button inside of a Popover:

image (using dark theme here to make a clearer contrast between the button background and the semi-transparent background)

bsunderhus avatar Apr 19 '24 08:04 bsunderhus

This is blocked as we don't have required native support for the feature.

layershifter avatar Nov 18 '24 15:11 layershifter

Do you mean on web? There is https://developer.mozilla.org/en-US/docs/Web/CSS/filter-function/blur which is baseline. Background with alpha should also be widely available

CodeDoctorDE avatar Nov 18 '24 15:11 CodeDoctorDE

@CodeDoctorDE it's about WebView2 limitations.

layershifter avatar Nov 18 '24 15:11 layershifter

This issue has not had activity for over 180 days! We're adding Soft close label and will close it soon for house-keeping purposes. Still require assistance? Please add comment - "keep open".

keep open

layershifter avatar May 19 '25 08:05 layershifter

This issue has not had activity for over 180 days! We're adding Soft close label and will close it soon for house-keeping purposes. Still require assistance? Please add comment - "keep open".