Skip to content

Add autoFocus to BottomSheet component config #12188

Closed
@CharlBest

Description

@CharlBest

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

Set autoFocus config property on the bottom sheet component (just like dialog) to configure if the first item in the bottom sheet should be focused (highlighted)

What is the current behavior?

No autoFocus on BottomSheet config

What are the steps to reproduce?

  1. Create a bottom sheet component
  2. Open bottom sheet with config (no property for setting if it should be auto focused)

What is the use-case or motivation for changing an existing behavior?

  1. Keep it consistent with the dialog config as they are very similar
  2. Prevent highlighting (focus) on list items or buttons when opening the bottom sheet

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

v6.2.1

Is there anything else we should know?

If this is added potentially add it to the global config token as well

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions