mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	chore: use HTML (custom) tooltip for permission switches (#7355)
This PR changes the environment permission switch to use the HTML tooltip instead of the default MUI tooltip. This aligns with how we've been doing tooltips recently. The main driver behind this change was that the project flag table used two different tooltips. This makes it so that they all look the same, but it also impacts other places that use the same switch. In feature flag table:  On flag page:  In project env table: 
This commit is contained in:
		
							parent
							
								
									3acb3ad2c2
								
							
						
					
					
						commit
						cfcf13980e
					
				@ -64,7 +64,11 @@ const BasePermissionSwitch = React.forwardRef<
 | 
			
		||||
    } = props;
 | 
			
		||||
 | 
			
		||||
    return (
 | 
			
		||||
        <TooltipResolver title={formatAccessText(access, tooltip)} arrow>
 | 
			
		||||
        <TooltipResolver
 | 
			
		||||
            title={formatAccessText(access, tooltip)}
 | 
			
		||||
            arrow
 | 
			
		||||
            variant='custom'
 | 
			
		||||
        >
 | 
			
		||||
            <span data-loading>
 | 
			
		||||
                <Switch
 | 
			
		||||
                    data-testid='toggle-switch'
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user