Before you use the bucket tool, create a cropped layer (or a selection area on a transparent layer) UNDER the text, and then fill it. Merge the text down to the cropped layer AFTER you color fill. Takes just seconds to do.
Addendum: if the text is on a white background, go to Color: color to Alpha, white, to make it transparent.
https://screencast-o-matic.com/watch/cYjjbnGDhYNot sure why the video is so fast. I was not doing this at supersonic speed.
_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes