Back button color during navigation animation

During the navigation animation from a page with mode ios and a collapsible large title to another page with an <ionic-back-button>, the back button color is always set to --ion-color-primary, regardless of the color set in the header toolbar of the second page or through the --color css variable. Once the animation is over the back button color switches to the expected color. I’m not sure if this is a bug. How can I make it so the back button color during the animation matches the color of the back button on the second page?