Skip to content

pofcc-75 - provide a direct mechanism for components to focus on an element outside of the library#2166

Open
jamescatto-cgi wants to merge 3 commits into
masterfrom
jcatto/pofcc-75
Open

pofcc-75 - provide a direct mechanism for components to focus on an element outside of the library#2166
jamescatto-cgi wants to merge 3 commits into
masterfrom
jcatto/pofcc-75

Conversation

@jamescatto-cgi

Copy link
Copy Markdown

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/POFCC-75

Change description

Adds a new service called 'FocusService' that allows components to set the focus on a DOM element that is specific to the service. The 'FocusService' element ID can be used in any DOM element. It is exported as part of the library API to allow wrapper applications to use the element ID - thus embedded components can focus on elements within the wrapper app DOM. By using this service, there is a clear line between the element being focussed and the component that triggers the focussing.

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[ X] No

@jamescatto-cgi jamescatto-cgi changed the title Jcatto/pofcc 75 pofcc-75 - provide a direct mechanism for components to focus on an element outside of the library May 18, 2026
@jamescatto-cgi jamescatto-cgi marked this pull request as ready for review May 18, 2026 15:52
@jamescatto-cgi jamescatto-cgi requested a review from a team as a code owner May 18, 2026 15:52
@jamescatto-cgi jamescatto-cgi force-pushed the jcatto/pofcc-75 branch 2 times, most recently from 345aa5d to b7215b2 Compare May 18, 2026 16:58

@connorpgpmcelroy connorpgpmcelroy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment added

Comment thread projects/ccd-case-ui-toolkit/src/lib/shared/services/window/focus.service.ts Outdated
anthonydummer
anthonydummer previously approved these changes May 20, 2026
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants