Genetics is fun but complicated sometimes!
Stereo I can give a simple example with my Japanese quail.
Standard coloured ones are a speckled brown partridge colour, this is a dominant gene.
White in quail is a recessive gene
So a quail who gets the standard coloured gene from one parent and the white one from another will still be a standard brown coloured quail although it carries the white gene.
If two of these are bred then the offspring will get either a dominant brown or a recessive white gene from each parent.
So
25% get both dominant brown genes
25% get brown from the male and white from the female
25% get white from the male and brown from the female
All of the above have the dominant brown gene and will be brown although some carry the recessive white
25% will get the white gene from both parents and will be white, these will always breed white if bred together, same as the brown birds with the double brown gene will always breed brown.
But some genes aren't fully dominant and it gets complicated