mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	feat: reverse source order of form control buttons.
this makes 'submit' or 'next' the first button you reach when tabbing out of the control
This commit is contained in:
		
							parent
							
								
									19e03e94e0
								
							
						
					
					
						commit
						5bc48076a2
					
				| @ -171,20 +171,6 @@ export const FeedbackWrapper = ({ seedData }) => { | ||||
|                 ></textarea> | ||||
| 
 | ||||
|                 <div className={styles['button-container']}> | ||||
|                     <button | ||||
|                         className={styles['button-secondary']} | ||||
|                         type="button" | ||||
|                         onClick={stepForward} | ||||
|                     > | ||||
|                         Skip | ||||
|                     </button> | ||||
|                     <button | ||||
|                         className={styles['button-secondary']} | ||||
|                         type="button" | ||||
|                         onClick={stepBack} | ||||
|                     > | ||||
|                         Back | ||||
|                     </button> | ||||
|                     <button | ||||
|                         type="submit" | ||||
|                         onSubmit={(e) => { | ||||
| @ -197,6 +183,20 @@ export const FeedbackWrapper = ({ seedData }) => { | ||||
|                     > | ||||
|                         Next | ||||
|                     </button> | ||||
|                     <button | ||||
|                         className={styles['button-secondary']} | ||||
|                         type="button" | ||||
|                         onClick={stepBack} | ||||
|                     > | ||||
|                         Back | ||||
|                     </button> | ||||
|                     <button | ||||
|                         className={styles['button-secondary']} | ||||
|                         type="button" | ||||
|                         onClick={stepForward} | ||||
|                     > | ||||
|                         Skip | ||||
|                     </button> | ||||
|                 </div> | ||||
|             </form> | ||||
|         ); | ||||
| @ -245,13 +245,6 @@ export const FeedbackWrapper = ({ seedData }) => { | ||||
|                 </div> | ||||
| 
 | ||||
|                 <div className={styles['button-container']}> | ||||
|                     <button | ||||
|                         className={styles['button-secondary']} | ||||
|                         type="button" | ||||
|                         onClick={stepBack} | ||||
|                     > | ||||
|                         Back | ||||
|                     </button> | ||||
|                     <button | ||||
|                         type="submit" | ||||
|                         onSubmit={(e) => { | ||||
| @ -262,6 +255,13 @@ export const FeedbackWrapper = ({ seedData }) => { | ||||
|                     > | ||||
|                         Submit feedback | ||||
|                     </button> | ||||
|                     <button | ||||
|                         className={styles['button-secondary']} | ||||
|                         type="button" | ||||
|                         onClick={stepBack} | ||||
|                     > | ||||
|                         Back | ||||
|                     </button> | ||||
|                 </div> | ||||
|             </form> | ||||
|         ); | ||||
|  | ||||
| @ -75,6 +75,7 @@ | ||||
| .button-container { | ||||
|     margin-top: var(--row-gap); | ||||
|     display: flex; | ||||
|     flex-direction: row-reverse; | ||||
|     justify-content: end; | ||||
|     gap: var(--element-horizontal-gap); | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user