If you’re an editor Figma first highlights/selects groups of elements, then components and then the sub elements inside the components. But if you hover a page design as a viewer it highlights/selects sub elements first instead groups or components.
Don’t really understand why it would do this, and it’s super confusing for our developers.