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
Open
pofcc-75 - provide a direct mechanism for components to focus on an element outside of the library#2166jamescatto-cgi wants to merge 3 commits into
jamescatto-cgi wants to merge 3 commits into
Conversation
0fb8a27 to
d14202f
Compare
2 tasks
6339e3a to
4c686bf
Compare
345aa5d to
b7215b2
Compare
b7215b2 to
7990846
Compare
connorpgpmcelroy
left a comment
Contributor
There was a problem hiding this comment.
One comment added
15ad9b5 to
d635d8a
Compare
connorpgpmcelroy
previously approved these changes
May 20, 2026
anthonydummer
previously approved these changes
May 20, 2026
…used the FocusService to allow components to focus on the skipToMainContent element
b0edcc0
d635d8a to
b0edcc0
Compare
|
connorpgpmcelroy
approved these changes
Jun 3, 2026
anthonydummer
approved these changes
Jun 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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")